Below are revisions for this snippet.

find if array contains element





Syndication

Revision Revison 1
Usage:
found('asdf',@array);

P.S. In perl 5.10 can be written as
use 5.010;
'asdf'~~@array;