Hi hdb,
Yes, but why?
Checking sort documentation you will find this:
Warning: syntactical care is required when sorting the list returned from a function. If you want to sort the list returned by the function call "find_records(@key)", you can use:Among other things..@contact = sort { $a cmp $b } find_records @key; @contact = sort +find_records(@key); @contact = sort &find_records(@key); @contact = sort(find_records(@key));
In reply to Re^3: why does sort with uniq not work together
by 2teez
in thread why does sort with uniq not work together
by david2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |