Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Hashes... Light switch isn't coming on

by jethro (Monsignor)
on Dec 12, 2012 at 17:35 UTC ( #1008537=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # initialize an array at once with 3 scalars, two array pointers and o
    +ne hash pointer: 
    @array= (1,2,3,\@anotherarray,[1,2],{1=>15});
    
    # initialize a hash at once with three keys. Data is one scalar, one h
    +ash pointer and one array pointer
    %hash= (1=>15, 7=>{5=>4}, 2=>[1,2,3]);
    
  2. or download this
    foreach ... {
       $array[$i][$j]= $value;
    ...
    
       $hash{$i}{$j}= $value;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-21 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls