Keep It Simple, Stupid | |
PerlMonks |
Re: sorting function arcument to 'sort': Can I pass additional parameters?by blazar (Canon) |
on Nov 10, 2008 at 10:22 UTC ( [id://722605]=note: print w/replies, xml ) | Need Help?? |
I personally believe that you don't want to "pass in other arguments to the sorting sub" because the sub is meant to be used sort and sort() itself won't pass anything in. Chances are you want to use closures instead:
In Section
Seekers of Perl Wisdom
|
|