> 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.

Reply via email to