|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^2: system() and qx comparisonby didess (Sexton) |
| on Sep 27, 2011 at 22:28 UTC ( #928197=note: print w/ replies, xml ) | Need Help?? |
|
thanks for your answer; but, if replace single quotes by doubles quotes with qx, $LANG will be resolved as a Perl variable, not as a shell environment variable This little code will show it clearly:
it's output is :
In fact i'd like to pass parameters to the command (the "echo" program in this little example), with possibly $, *, and such characters which the shell interpretes. while avoiding a large collection of antislashes. May be, it's not possible with qx and I must use system(). That's what I'd like to know</p
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||