Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Different behavior of script in file vs -e
January 16, 2006, 7:42 pm
rate this thread
Re: Different behavior of script in file vs -e
Try looking at what perl will be seeing:
echo "@x = qw/foo bar baz/; print qq"
It sees $x as a *shell* variable, not a Perl variable.
Single quotes instead of double quotes for your argument in the shell?
Tad McClellan SGML consulting
firstname.lastname@example.org Perl programming
Fort Worth, Texas