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

Re: Populating and accessing complicate Hashes

by bobf (Monsignor)
on Apr 24, 2006 at 04:37 UTC ( #545205=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $href = $main_hash{$val}{$type}{$pegs};
    my $T1val = defined $href->{'Section1'}[0] ? $href->{'Section1'}[0] : 
    +undef;
    
  2. or download this
    $T1val = defined ${$main_hash{$val}{$type}{$pegs}{'Section1'}}[0] ? ${
    +$main_hash{$val}{$type}{$pegs}{'Section1'}}[0] : undef;
    
  3. or download this
    $T1val = ${$main_hash{$val}{$type}{$pegs}{'Section1'}}[0];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545205]
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: (3)
As of 2020-04-05 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (33 votes). Check out past polls.

    Notices?