Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Problem with hashes

by Ratazong (Prior)
on Feb 09, 2012 at 15:16 UTC ( #952750=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Problem with hashes
in thread Problem with hashes

Rule one for debugging: checking is better than knowing for sure. So try copying the following code before your print and look what is happening ...:

if (exists ($hash{$word[-1]})) { print("$word[-1] OK\n"); } else { print("$word[-1] isn't in the hash\n"); }


Comment on Re^3: Problem with hashes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (16)
As of 2014-07-31 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (252 votes), past polls