Please note: Many features of this site require JavaScript. You appear to have JavaScript disabled, or are running a non-JavaScript capable web browser.
To get the best experience, please enable JavaScript or download a modern web browser such as Internet Explorer 8, Firefox, Safari, or Google Chrome.
EXPR is executed as a system command.
The collected standard output of the command is returned.
In scalar context, it comes back as a single (potentially
multi-line) string. In list context, returns a list of lines
(however you've defined lines with $/
or $INPUT_RECORD_SEPARATOR
).
This is the internal function implementing the qx/EXPR/
operator, but you can use it directly. The qx/EXPR/
operator is discussed in more detail in I/O Operators in perlop.
If EXPR is omitted, uses $_
.