in reply to non-destructive read on 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 |