in reply to Re^2: Is it possible to write to STDIN ?
in thread Is it possible to write to STDIN ?
The documentation for 'open' shows how to save and restore filehandles, and some other dirty tricks you can play.close(STDIN); open(STDIN, 'foo'); print $_ foreach(<STDIN>);
|
|---|