Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        do { $max = $_[$_] if $max < $_[$_]; } for 1..$#_;
        $max;
    }
    
  2. or download this
    my $max = (sort { $b <=> $a } @arr)[0];