in reply to
grep help
try replacing
@friends{sort keys %friends}
with
values %friends
. Even better, dont use a hash at all for %friends, use an array instead.
The grep is otherwise perfectly OK.
goldclaw
Comment on
Re: grep help
Select
or
Download
Code
In Section
Seekers of Perl Wisdom