in reply to filehandle in warning not what I expected...

Perl only resets the line counter when opening the file. For each line in $remedy_file, you read many lines of $interface_data. It seems very inefficient to me, but that's a different issue. If, instead of seeking, you would just (re)open the file, you'll see more sensible numbers.
  • Comment on Re: filehandle in warning not what I expected...

Replies are listed 'Best First'.
Re^2: filehandle in warning not what I expected...
by spstansbury (Monk) on Dec 27, 2010 at 21:51 UTC

    Thanks for the input - you're right, it's inefficient, I will follow Corian's advice and read the file into a hash.

    But what really confused me is that the warning referenced the interface file and not the actual data file that the undef field was parsed from...

      Or it's simply showing the last filehandle that I read from...

        Right. Perl isn't tagging any values with the source it came from; let alone undefined values. In fact, if it came from a file, it has to be defined.