in reply to Re^2: Is it possible to sort using a coderef, without first storing the coderef in a scalar
in thread Is it possible to sort using a coderef, without first storing the coderef in a scalar

If you wish to use that syntax, you could use a wrapper.

sub mysort { my $sorter = shift; return sort $sorter @_; } my @sorted = mysort sorthash_alpha('foo'), @list;
  • Comment on Re^3: Is it possible to sort using a coderef, without first storing the coderef in a scalar
  • Download Code