Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Odd hash problem

by imp (Priest)
on Feb 23, 2007 at 15:16 UTC ( #601745=note: print w/replies, xml ) Need Help??


in reply to Odd hash problem

You will save yourself a lot of pain (and most of your hair) by always using strict and warnings, especially when using mixed case variable names.

It wouldn't have caught this issue, but it will likely catch many others for you.

Also, you are trying to use '$1' instead of '$!' for the error variable here:

open (ZIPCODE, "<../Files/ZipCodes.txt") or die "Cannot open ZipCode: +$1\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://601745]
help
Chatterbox?
[marto]: deplorable is actually not bad for this point in the day :P
[erix]: we aim to satisfy
[erix]: churches are good excuses for large-scale architecture -- which is nice
[marto]: not to be confused with Chvrches

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-07-28 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (431 votes). Check out past polls.