Help for this page

Select Code to Download


  1. or download this
    #!perl
    use strict;
    ...
    $max = $_ if $max > $_ foreach (@vector[1..$#vector]);
    
    print "$max\n";
    
  2. or download this
    $max = max (@vector);