Punto has asked for the wisdom of the Perl Monks concerning the following question:
I have this script that get a lot of data from STDIN. I need to get some data from the first 3 or 4 lines of the input (I don't know exactly how many) and then send everithing (including the first 3 or 4 lines) to a different object (mime::parse). I can't put all STDIN on an array, because the script may run out of memory, so, is there any way to "restart" reading from STDIN? Once I get the stuff from <STDN>, is there a way to "put it back in"?
Thanks..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: re-start reading from stdin?
by lhoward (Vicar) on May 27, 2000 at 02:25 UTC |