• 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: Do Perl Script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do Perl Script?


  • Subject: Re: Do Perl Script?
  • From: John Delacour <email@hidden>
  • Date: Sat, 7 Jun 2003 00:32:32 +0100
  • Mac-eudora-version: 6.0b20

At 2:32 pm -0700 6/6/03, Christopher Nebel wrote:

I'm not sure if JD intended his example to demonstrate one of these "insoluble" problems or not,

Not

but it works quite easily with perl -e:

Wait till it stumbles across a single quote.

The upshot of this is: use the appropriate technique for the task. The exact limits depend on your personal tolerances, but the rule of thumb I use is to use "perl -e" for anything less than 5 lines of Perl.

So long as you have no single quotes etc. lying around. If the data it has to deal with are predictable, then fine. If unknown file contents are to be handled, then perl -e is out.

JD
_______________________________________________
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: Do Perl Script?
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Do Perl Script? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Forcing Terminal to not resize
  • Next by Date: Re: Forcing Terminal to not resize
  • Previous by thread: Re: Do Perl Script?
  • Next by thread: Re: Do Perl Script?
  • Index(es):
    • Date
    • Thread