• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell-Perl-AppleScript scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell-Perl-AppleScript scripting


  • Subject: Re: Shell-Perl-AppleScript scripting
  • From: John Fowler <email@hidden>
  • Date: Sun, 28 Dec 2003 21:12:35 -0600

The distinguished Randall Schwartz wrote:

The general strategy for a good delimiter is like this:

BEGIN {
chomp($search = <<'UnLiKeLyStRiNg');
your search string goes here, as is
UnLiKeLyStRiNg
chomp($replace = <<'UnLiKeLyStRiNg');
your replace string goes here, as is
UnLiKeLyStRiNg
}
s/$search/$replace/g;


My other concern about this quoting method in the context of an AppleScript do shell script command is that it is not consistent with a one-line perl script....

John Fowler
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Shell-Perl-AppleScript scripting
      • From: Stevan Reese <email@hidden>
  • Prev by Date: Re: Bug in Safari or Finder (was File Name Manipulation)
  • Next by Date: Re: Shell-Perl-AppleScript scripting
  • Previous by thread: Re: Shell-Perl-AppleScript scripting
  • Next by thread: Re: Shell-Perl-AppleScript scripting
  • Index(es):
    • Date
    • Thread