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;
In reply to Re: system() and qx comparison
by Kc12349
in thread system() and qx comparison
by didess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |