in reply to why does sort with uniq not work together
Hi david2008,
If you use warnings; you would have seen this message: Sort subroutine didn't return single value at line ...
so using this
would resolve the issue. Try itprint "sorted unique results\n"; print Dumper( [ sort( uniq( @x, @y ) ) ] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why does sort with uniq not work together
by hdb (Monsignor) on Nov 27, 2013 at 13:09 UTC | |
by 2teez (Vicar) on Nov 27, 2013 at 13:23 UTC | |
by hdb (Monsignor) on Nov 27, 2013 at 13:37 UTC | |
by 2teez (Vicar) on Nov 27, 2013 at 13:45 UTC |