my $szSortFunction = '$a cmp $b'; my @szSortedLines = sort { eval $szSortFunction } @szLinesToSort;
In reply to Re: Choosing the sort routine on the fly
by Outaspace
in thread Choosing the sort routine on the fly
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |