Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Retrieve value with key warns 'unitialized value' although present

by bv (Friar)
on Dec 28, 2009 at 17:50 UTC ( [id://814637]=note: print w/replies, xml ) Need Help??


in reply to Retrieve value with key warns 'unitialized value' although present

Whitespace! Your keys all have an extra space at the end, since you split on /=/. To fix, change your split to /\s*=\s*/. As a tip, when printing debug statements, use obvious delimiters to catch this kind of error. For example:

while ( (my $key, my $value) = each %config ) { print "!$key! => ($value)\n"; }

print map{substr'hark, suPerJacent other l',$_,1}(11,7,6,16,5,1,15,18..23,8..10,24,17,0,12,13,3,14,2,4);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found