Bravo! I hadn't thought about doing it with sort.
I came up with:
use List::Util qw|max|; ... my $maxsize = max(map {chomp; length} @lines);
In reply to Re^5: Special formatting of error messages
by osunderdog
in thread Special formatting of error messages
by Ronnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |