in reply to Re: A simple backticks question
in thread A simple backticks question
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A simple backticks question
by no_slogan (Deacon) on Mar 17, 2014 at 16:36 UTC | |
by LanX (Saint) on Mar 17, 2014 at 16:49 UTC |