Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    @hash{ @keys } = @vals;
    print $_, " : ", $hash{$_}, $/ for keys %hash;
    
  2. or download this
    my $smaller = @array1 > @array2 ? @array2 : @array1;
    for my $index ( 0 .. $smaller ) {
    ...
            }
        }
    }