Help for this page

Select Code to Download


  1. or download this
    @array = ( [ "foo", "bar"],
               [ "abc", "def"] );
    
  2. or download this
    while ( <FILE> ) {
        push @array, [ split ];
    }
    
  3. or download this
    for $i (0..$#array) {
        for $j (0..$#{$array[$i]}) {
            print "Element $j of project $i is $array[$i][$j]\n";
        }
    }