Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How do you check if a key exists without creating it ?

by Anonymous Monk
on Oct 06, 2012 at 08:44 UTC ( #997604=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( exists $foo->{bar}{anything}{you}{want} ){
    }
    
  2. or download this
    if( my $want = Dive( $foo, qw/ bar anything you want / ) ){
    ...
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-12-22 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls