in reply to does not exist in an array

grep works well in this situation:
my @values = qw( bcd efg hij klm ); print "not found" unless grep { 'abc' eq $_ } @values;

Replies are listed 'Best First'.
Re^2: does not exist in an array
by manav (Scribe) on Mar 10, 2005 at 05:40 UTC
    Also remember that grep will read the entire array into memory.....

    Frequently creates problem when you Tie::File a large file to an array, Tie::File won't read it, but grep(if present) will....

    Manav
Re^2: does not exist in an array
by Anonymous Monk on Mar 10, 2005 at 03:20 UTC
    thanks, thats great! :)