in reply to readline() on unopened filehandle
But beside that, you have more problems. You're not checking the return value of 'open', the file might not open. Furthermove, if you do:
you will be skipping every odd line.while ((my $line_B = <FILE>)) { last OUTER unless defined ($line_B = <FILE>)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: readline() on unopened filehandle
by Win (Acolyte) on Oct 07, 2005 at 13:44 UTC | |
by Perl Mouse (Chaplain) on Oct 07, 2005 at 13:50 UTC | |
|