didess has asked for the wisdom of the Perl Monks concerning the following question:
One through the shell with the command and its parameters in one single scalar system('echo $LANG'); for example.
One without the shell, with the command and its parameters in a list. like system('echo','$LANG');
With this second form, the command echo will print '$LANG' without any resolution of the variable LANG.
Can I get these two different ways , and how if yes, with the qx syntax : qx {echo $LANG} ?
Thanks to you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system() and qx comparison
by ikegami (Patriarch) on Sep 27, 2011 at 23:25 UTC | |
by didess (Sexton) on Sep 28, 2011 at 05:43 UTC | |
|
Re: system() and qx comparison
by Kc12349 (Monk) on Sep 27, 2011 at 22:00 UTC | |
by didess (Sexton) on Sep 27, 2011 at 22:28 UTC | |
by onelesd (Pilgrim) on Sep 27, 2011 at 22:32 UTC |