Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Mysterious ActiveState Perl Hangs

by simon.proctor (Vicar)
on Feb 18, 2002 at 13:32 UTC ( [id://146144]=note: print w/replies, xml ) Need Help??


in reply to Mysterious ActiveState Perl Hangs

I can't comment on the bug itself but why don't you use the exists() function on your hash key prior to your logic?

Something like (untested):
unless(exists $hash{$key}) { # Do stuff return; } if($hash{$key} > 3) { # Other stuff }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found