Hi,

Jeff Westman [mailto:[EMAIL PROTECTED] asked:
> Why does the order of these options matter?
[...]
> $ nslookup someServer | perl -en 'print qq($_);'
> 
> $ nslookup someServer | perl -ne 'print qq($_);'

-e must be followed by the code:

$ perl --help

Usage: perl [switches] [--] [programfile] [arguments]
[...]
  -e 'command'    one line of program (several -e's allowed, omit
programfile)
[...]

So what does your first example do? Try this:

$ perl -w -en 'print "Hello, World!\n"'
Unquoted string "n" may clash with future reserved word at -e line 1.
Useless use of a constant in void context at -e line 1.

HTH,
Thomas
"-w is your friend"


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to