IO::Pipe

IO::Pipe

NAME

IO::Pipe - supply object methods for pipes

SYNOPSIS

use IO::Pipe;

$pipe = IO::Pipe->new();

if($pid = fork()) { # Parent
    $pipe->reader();

    while(<$pipe>) {
	...
    }

}
elsif(defined $pid) { # Child
    $pipe->writer();

    print $pipe ...
}

or

$pipe = IO::Pipe->new();

$pipe->reader(qw(ls -l));

while(<$pipe>) {
    ...
}

DESCRIPTION

IO::Pipe provides an interface to creating pipes between p