> But, if you did, I think this should work:
But then it is saturday morning. Sigh. Ignore my
attempt; use Peter's.
> sub room { my $s = $shash{$_}; (split /\t/)[2] };
Wrong, twice. You wanted lastname, not room.
And the split isn't working on the right thing.
Peter's solution is clearer, not to mention right.
- Sorting hash by element Ron Anderson
- Re: Sorting hash by element Peter Scott
- Re: Sorting hash by element Paul Johnson
- Re: Sorting hash by element Me
- Me
