Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $input_file = 'foobar.txt';
    ...
    }
    close $in;
    print "max at ($max->[ 0 ], $max->[ 1 ])\n";
    
  2. or download this
    while ( <$in> ) {
      chomp;
    ...
      last if $y <= $max->[ 1 ];
      $max = [ $x, $y ];
    }