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