in reply to my $a outside sort block incompatibility
If you're using strict, you must not declare $a and $b as lexicals. They are package globals.