Help for this page

Select Code to Download


  1. or download this
       %h = (
          a => [3, 9, 4],
    ...
          c => [9, 7, 2],
          ...
       )
    
  2. or download this
        my ($x,$y,$z) = @{$h{$key}}; 
        $o->{m}[$x][$y][$z] = ...
    
  3. or download this
        sub matrixGet {
            my ($o, $x, $y, $z) = @_;
    ...
        ...
        $o->matrixGet(@{$h{$key}});
        $o->matrixSet(@{$h{$key}},5);
    
  4. or download this
        sub matrixGet {
            my ($m, $x, $y, $z) = @_;
    ...
        }
        ...
        matrixGet($o->{m},@{$h{$key}});