in reply to WHILE and DEFINED problem
while (chomp(my $qline = <QINPUT>)) { # yadda, yadda, yadda }
Though, this will fail to read the last line if it doesn't contain a newline at the end of it. (Similar to the "Incomplete last line" error vi gives you in the same situation.)
Just do what demerphq or valdez (through the link provided) suggest.
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|