Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Welcome to the Monastery
 
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 studying the Monastery: (11)
As of 2014-04-18 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls