sub my_filter { my ($hash) = @_; return [ sort {$b <=> $a} keys %{$hash}; #Reverse sort ]; }
perl complains of a syntax error near "};" but I don't see it! My only change was tr/%$hash/%{$hash}/ (the Damian way), but it fails either way.
I seek enlightenment
In reply to syntax error - WHERE? by davidfilmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |