Help for this page

Select Code to Download


  1. or download this
    
    sub inc{
    ...
    my@b=(1..5);
    my $c = inc(inc(\@b));
    print Dumper $c;
    
  2. or download this
    $VAR1 = [
              [
    ...
                ]
              ]
            ];
    
  3. or download this
    @a = (1,2,3,4,5,6);
    increment(\@a);
    
    #produces tuples of:
    [1,2],[2,3],[3,4],[4,5],[5,6] #yay!!
    
  4. or download this
    $VAR1 = [
              [
    ...
                ]
              ]
            ];
    
  5. or download this
    my @a = (1,2,3,4,6);
    
    ...
       }
       \@b
    }