Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Undesirable parent hash keys

by sophate (Beadle)
on Jan 11, 2013 at 07:33 UTC ( #1012812=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %Hash;
    $Hash{'2012'}{'Jan'}{'13th'} = 1; # set 13th Jan 2012 to true
    ...
      ## I only want to be here if I set
      ## $Hash{'2013'}{'Oct'}{'11th'} = 1 explicitly.
    }
    
  2. or download this
    if ($Hash{'2013'} && $Hash{'2013'}{'Oct'} && $Hash{'2013'}{'Oct'}{'11t
    +h'} && $Hash{'2013'}{'Oct'}{'11th'}{'1AM'} && $Hash{'2013'}{'Oct'}{'1
    +1th'}{'1AM'}{'30Min'}) {
     # do something here
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1012812]
Approved by Athanasius
Front-paged by davido
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: (12)
As of 2015-01-26 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (192 votes), past polls