Help for this page

Select Code to Download


  1. or download this
          @array = ($new, @array);        # new 1st element
       or @array = (@array, $new);        # new last element
       or @array = ($new, @array, $new2); # both
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    
    ...
    
    # Show the result
    print "@$_\n" for @records;
    
  3. or download this
    for my $i (0..$#records) {
       @{$records[$i]} = ($i, @{$records[$i]});
    }