in reply to system() and qx comparison
Remove the single quotes from around $LANG in your second form or replace them with double quotes.
qx is another form for backticks, which in perl will capture the return from the system call.
my $return = qx{echo $LANG}; say $return;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system() and qx comparison
by didess (Sexton) on Sep 27, 2011 at 22:28 UTC | |
by onelesd (Pilgrim) on Sep 27, 2011 at 22:32 UTC |