for my $line ( map { ... } sort { ... } map { ... } <DATA>) { print $line; }
and just do
print map { ... } sort { ... } map { ... } <DATA>;
without the need to assign each line before printing it. It looks a little easier to my eye.
Cheers,
JohnGG
In reply to Re^3: Sorting out troubles with advanced-ish sort
by johngg
in thread Sorting out troubles with advanced-ish sort
by chargrill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |