in reply to Re: Re: sort hash exceptions
in thread sort exceptions

That gives "Use of uninitialized value in negation (-)". (Yes, I know, the example you responded to was missing use warnings;), so you need -($except{$b}||0) instead.