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..
In reply to re-start reading from stdin? by Punto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |