Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: I just want to understand why ...

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


in reply to Re: I just want to understand why ...
in thread Why does testing for the existence of hash keys create the keys ?

And then there's the third way which requires some extra typing, but is fine for two-level or three-level hashes:

my $r = $hashref; # better to use a short variable name here if($r->{a} and $r->{a}->{b} and exists $r->{a}->{b}->{c}) { # Do something }


Comment on Re^2: I just want to understand why ...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-07-25 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls