start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.98 IPC::Open2 Chapter 8
Standard Modules
Next: 8.98 IPC::Open2
 

open2

open2 (\*

rdr

, \*

wtr

, 

cmd_with_args

)

Forks a child process to execute the specified command. Takes the following arguments:

\*rdr

Represents a read filehandle that your program can use to read from the command $cmd 's standard output. Can be a FileHandle object or a reference to a typeglob.

\*wtr

Represents a write filehandle that your program can use to write to the command $cmd 's standard input. Can be a FileHandle object or a reference to a typeglob.

cmd_with_arguments

The command to be executed by the child process, and its arguments. Can be specified two ways:


$cmd_with_args
 
$cmd
, "
arg1
", "
arg2
", ...


Previous: 8.98 IPC::Open2 Perl in a Nutshell Next: 8.98 IPC::Open2
8.98 IPC::Open2 Book Index 8.98 IPC::Open2