in reply to non-destructive read on stdin

open "|...", IPC::Open3, IPC::Run, IPC::Run3, etc provide means of feeding input to a child process via its STDIN.

Update:

my $stdin; while (<STDIN>) { $stdin .= $_; ... process STDIN as usual ... } open(my $child, "|child") or die("Unable to start child: $!\n"); print $child $stdin;

Replies are listed 'Best First'.
Re^2: non-destructive read on stdin
by jeremyh (Beadle) on Aug 01, 2006 at 23:29 UTC
    Yes, I should have thought of that - thanks!