Im making a perl program that is running as a subprogram of something else,
the stdin and stdout for this perl program are directed towards the perl's parent program. So stdin/out is actually coming from the parent.
The problem is is that I need to get a bunch of lines of input and then process them, but the way the system is set up, I can't do "@all = <STDIN>" because the stdin never has an EOF signal, if I DO do it, it will just wait for ever thinking more input will be coming...
Is there a way to read in until the program isn't being passed anything more, that is, check that stdin isn't returning anything more.
I would like to know because, the input that comes in could vary in length, so I can't just read in 'X' times and stop.