Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 imbibing at the Monastery: (6)
As of 2015-04-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (481 votes), past polls