It all looks pretty sane to me with seeing the data. I would suggest the you include a print statement in the sort block and see what you are getting.
That should show what it doesn't like, then all that's left to do it track down where it's coming from:)my @sorted = sort { print "$a|$b|$angles{$a}|$angles{$b}\n"; $angles{$a} <=> $angles{$b} } keys %angles;
In reply to Re: Maybe I'm just dumb...
by BrowserUk
in thread Debugging a sort in PDL routine
by Evanovich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |