Jump to content

Perl Programming/Keywords/readpipe

From Wikibooks, open books for an open world
Previous: readlink Keywords Next: recv

The readpipe keyword

[edit | edit source]

readpipe executes EXPRESSION as a system command and returns the collected standard output. If called from scalar context, a string is returned. If called from list context, a list of lines as defined by $/ or $INPUT_RECORD_SEPARATOR is returned. This is the internal implementation of the qx/EXPRESSION/ operator.

Syntax

[edit | edit source]
  readpipe EXPRESSION
  readpipe

See also

[edit | edit source]
Previous: readlink Keywords Next: recv