Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Problem with hashes

by rattytatty (Initiate)
on Feb 09, 2012 at 15:06 UTC ( #952747=note: print w/replies, xml ) Need Help??

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

I've checked manually for a few of the keys in the hash
file and the exist. I know for a fact that they all do
exist as I used them to generate the hash in the first place.

Replies are listed 'Best First'.
Re^3: Problem with hashes
by Ratazong (Monsignor) on Feb 09, 2012 at 15:16 UTC
    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"); }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952747]
[Discipulus]: i still suspect english has some logical 'curvature/ crookedness' that has and will have a big impact over programming
[Discipulus]: if you refere to gestures ++choroba
Discipulus still has problem with 'until' beyond simplest cases
[choroba]: ;-)
[Discipulus]: and larry studied natural languages too
[choroba]: Czechs have problems with unless
[Lady_Aleena]: Are you all sick of me discussing my reorganization?
[Discipulus]: Untillian Headache or about the semantic of until

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-05-27 20:23 GMT
Find Nodes?
    Voting Booth?