- or download this
use warnings;
use strict;
...
$max = $len if $len > $max;
}
print "$max\n";
- or download this
a
abc
abcdef
abcd
abcde
- or download this
1 2 3
12345678901234567890123456789012345678
- or download this
perl -nE'$l=y///c;$m=$l if$l>$m;END{say$m}' file.txt