in reply to Re: sort sub in a different package
in thread sort sub in a different package

Or more simply,

#!/usr/footprints_perl/bin/perl -w use strict; package joe; my @names = ('joe', 'aaron'); package FP; sub sortNames ($$) { print "$_[ 0 ] vs $_[ 1 ]\n"; return $_[ 0 ] cmp $_[ 1 ]; } package joe; my @sorted = sort FP::sortNames @names; print "sorted : @sorted\n"; __END__ P:\test>junk joe vs aaron sorted : aaron joe

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?