Help for this page

Select Code to Download


  1. or download this
    my @aryref = &retary;
    print ${$aryref[0]}[0];    #print 1st element of 1st array
    
  2. or download this
    my %hash;
    $hash{ary1} = @ary1;
    $hash{ary2} = @ary2;
    $hash{ary3} = @ary3;
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my @aoh;
    $aoh[0] = { key => 'value'};
    print Dumper(@aoh);