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