in reply to (more specific) Re: better way to find list members?
in thread better way to find list members?

If you insist on just wrapping grep in a subroutine...
my $array = [ 1 .. 50 ]; sub mygrep { my( $guess, $array ) = @_; grep { $_ == $guess } @{$array}; } print mygrep( 165, $array ) ? "True\n" : "False\n";
Enjoy!
--
Casey
   I am a superhero.