Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: filehandle in warning not what I expected...

by spstansbury (Monk)
on Dec 27, 2010 at 21:51 UTC ( [id://879330]=note: print w/replies, xml ) Need Help??


in reply to Re: filehandle in warning not what I expected...
in thread filehandle in warning not what I expected...

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...

  • Comment on Re^2: filehandle in warning not what I expected...

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

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://879330]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-04-23 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found