Update:
my $stdin; while (<STDIN>) { $stdin .= $_; ... process STDIN as usual ... } open(my $child, "|child") or die("Unable to start child: $!\n"); print $child $stdin;
In reply to Re: non-destructive read on stdin
by ikegami
in thread non-destructive read on stdin
by jeremyh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |