NAME

List::Member - return index of scalar in array, or -1.

SYNOPSIS

use List::Member;
my $target = 'bar';
my @look_in = ('foo','baz','bar','etc');
warn "It's a member of the array"
	if member('bar',@look_in);
__END__;

DESCRIPTION

A tiny routine to achieve the same effect as PROLOG's member/2.

Returns the index of supplied scalar in supplied array, or returns -1.

EXPORT

member

AUTHOR

Lee Goddard <lgoddard@cpan.org>

SEE ALSO

perl(1).