Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Assignment of Arrays of Hashes

by physgreg (Scribe)
on Oct 14, 2002 at 09:55 UTC ( [id://205020] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    test1 test2 test3 test4
    test44 afsd wfsdf sdfsd
    
  2. or download this
    $VAR1 = 'field1';
    $VAR2 = 'test1';
    ...
    $VAR6 = 'test3';
    $VAR7 = 'field4';
    $VAR8 = 'test4';
    
  3. or download this
    $VAR1 = {
              'field1' => 'test1',
    ...
              'field3' => 'wfsdf',
              'field4' => 'sdfsd'
            };
    
  4. or download this
    print $RefHash[0]{'field2'},"\n";