Package : perl-List-Member

Package details

Summary: PROLOG's member/2: return index of $x in @y

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 the
value of the package's '$NEG' scalar. This can be over-ridden for the case
when the target is the same as the default '-1':

$List::Member::NEG = 'not_a_member';


URL: https://metacpan.org/release/List-Member
License: GPL+ or Artistic

Maintainer: nobody

List of RPMs