map { anchor( textify($_), { href => $_ } ) } grep { /^[A-Z].+/ && -f $_ } sort { article_sort($a, $b) }
If possible, I would put the grep before the sort so that you probably have fewer items to sort which takes less time. (more efficient):
map { anchor( textify($_), { href => $_ } ) } sort { article_sort($a, $b) } grep { /^[A-Z].+/ && -f $_ }
In reply to Re: Refactoring just to refactor?
by jwkrahn
in thread Refactoring just to refactor?
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |