Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my @nums = sort { $a <=> $b } @array;
    
    print "The largest number is: $nums[$#nums]\n";
    
  2. or download this
    C:\>perl pg8.pl
    The largest number is: 218