Help for this page

Select Code to Download


  1. or download this
    my @numbers = split /, /,$file;
    
  2. or download this
    print join("\n",@numbers) . "\n";
    
  3. or download this
    foreach my $index (1 .. $#numbers)
    
  4. or download this
    my $difference = abs($numbers[$index] - $numbers[$index - 1]);
    
  5. or download this
    $max_difference = ($index == 1 or $difference > $max_difference)?$diff
    +erence:$max_difference;
    
  6. or download this
    print "$max_difference\n";
    
  7. or download this
    use strict;
    use warnings;
    ...
       $max_difference = ($index == 1 or $difference > $max_difference)?$d
    +ifference:$max_difference;
    }
    print "$max_difference\n";