in reply to sorting by field of a tab-delimited hash value

The suggestions you have are the way to go if you're stuck with the %students hash you've described. It would be more generally convenient, I think, to make that a hash of arrays (HoA). This will convert them in place:

$_ = [split] for values %students;

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: sorting by field of a tab-delimited hash value
by keiusui (Monk) on Jun 21, 2006 at 01:00 UTC
    I agree that a hash of arrays would be convenient. However, the DB::File module in cpan does not allow hashes of arrays. It only allows hashes of strings.