| [reply] |
Thanks. Sadly I just tried this and it doesn't work. The uninitialized value message is still there. Interestingly the error message is slightly different when this approach is applied to Cheeselord's example (which describes the problem well, I think). If I don't close and reopen STDIN, the string '<STDIN> line 6' is appended to the error message. Line 6 is where the first read occurs (i.e. where cat file | eoftest.pl feeds in). I wonder if these pipes are dictated by the parent shell rather than perl itself? </musing>
| [reply] [d/l] [select] |