• 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 problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell-perl problems


  • Subject: Re: shell-perl problems
  • From: phildobbin <email@hidden>
  • Date: Sat, 20 Dec 2003 11:38:12 +0000

On 20/12/03 06:17, "John Fowler" <email@hidden> wrote:

[...]

> PS on the web page
> http://developer.apple.com/technotes/tn2002/tn2065.html, perl is called
> with a -n thingie as well as a -e thingie. What does the -n do?
> (Putting it into my script didn't help).

The `-n' causes Perl to assume the following loop around your script which
makes it iterate over filename arguments:

LINE:
While (<>) {
... # this bit being your script
}

Regards,

Phil.

--
sig left intentionally blank
_______________________________________________
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.

References: 
 >shell-perl problems (From: John Fowler <email@hidden>)

  • Prev by Date: Re: Sorting IP addresses
  • Next by Date: Menu Shortcuts
  • Previous by thread: Re: shell-perl problems
  • Next by thread: WebDAV
  • Index(es):
    • Date
    • Thread