On Aug 22, 1:18 am, [EMAIL PROTECTED] (Alexandru Maximciuc) wrote: > Wednesday, August 22, 2007, 7:44:02 AM, you wrote: > > > unless (grep $item eq $_, %$all_ref{$crew}) { > > this does the job well (I think :) ) > unless (grep $item eq $_, $all_ref->{$crew}) {
No. $all_ref->{$crew} is a reference to an array. It needs to be dereferenced. unless (grep $item eq $_, @{$all_ref->{$crew}}) { Please read: perldoc perlreftut perldoc perllol perldoc perldsc Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/