in reply to Using null filehandle
print STDERR "$ARGV:$.:$line";
I would suggest rewriting the code so that there is only one loop that reads lines. Use flags or a state variable to control the processing. This makes it easier to analyze where the file is being read and what the state the processing is in at each stage.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using null filehandle
by digger (Friar) on Jun 09, 2004 at 10:34 UTC |