Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Testing Hash Value (Idiomatic)

by tadman (Prior)
on Jun 08, 2002 at 15:32 UTC ( [id://172791]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (my $value = $hash1->{a}->{b}->{c})
    {
         $hash2->{bob} = $value;
    }
    
  2. or download this
    if (my $ref = $hash1->{a}->{b})
    {
         $hash2->{bob} = $ref->{c} || $ref->{d};
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found