in reply to Re: Self-Looping over hash - how to remove duplicate
in thread Self-Looping over hash - how to remove duplicate

Easier way to swap two values:
($a,$b)=($b,$a);
So we get:
($si,$sn) = sort {$a<=>$b} $si, $sn
I believe this is straight out of 'Learning Perl'