In scalar context, it comes back as a single (potentially multi- line) string, or undef if the command failed. In list context, returns a list of lines (however you’ve defined lines with $/ or $INPUT_RECORD_SEPARATOR), or an empty list if the command failed.
Cheers Rolf
( addicted to the Perl Programming Language)
¹) corrected, thanks to no_slogan. It very much depends on what the command within backticks returns.
In reply to Re^2: A simple backticks question
by LanX
in thread A simple backticks question
by return0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |