< Perl Programming < Keywords

The readpipe keyword

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

  readpipe EXPRESSION
  readpipe

See also

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.