Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Hash checking

by Anonymous Monk
on Apr 25, 2007 at 19:33 UTC ( #612081=note: print w/replies, xml ) Need Help??

in reply to Re: Hash checking
in thread Hash checking

Thank you kyle, that helped a lot. Now, another problem has appeared.

I need to check for the presence of some values in the hash. For example, I am sure tha 1090 is in the hash. But the following code never evaluates as true and thus never does what's inside of the if statement.

for ($i=1;$i<5001;$i++){
if (exists $faclist{$i}){
print "$i\n";

Replies are listed 'Best First'.
Re^3: Hash checking
by mreece (Friar) on Apr 25, 2007 at 20:12 UTC
    just how sure are you, and how are you sure?
    use Data::Dumper; print Dumper(\%faclist);

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2023-06-06 13:57 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.