in reply to Re^2: why does sort with uniq not work together
in thread why does sort with uniq not work together
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));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: why does sort with uniq not work together
by hdb (Monsignor) on Nov 27, 2013 at 13:37 UTC | |
by 2teez (Vicar) on Nov 27, 2013 at 13:45 UTC |