The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::ACL::Match::Member - Class matching one or more members of an array

SYNOPSIS

    use Net::ACL::Match::Member;

    # Construction
    my $match = new Net::ACL::Match::Member(1,[41,42]);

    # Accessor Methods
    $rc = $match->match(@data);

DESCRIPTION

This module is a very simpel array element testing utility to allow simple value matching with Net::ACL::Rule.

CONSTRUCTOR

new() - create a new Net::ACL::Match::Member object
    my $match = new Net::ACL::Match::Member(1,[41,42]);

This is the constructor for Net::ACL::Match::Scalar objects. It returns a reference to the newly created object.

It takes one argument. If the argument is a array reference with one element, the element will be matched with the first argument to the match method.

If an array reference has more then one element, the second element should be the argument number to be matched in the match method.

Otherwise, the value it self will be matched with the first argument of the match method.

ACCESSOR METHODS

match()

This function matches the arguments acording to the arguments of the constructor and returns either ACL_MATCH or ACL_NOMATCH as exported by Net::ACL::Rule with :rc.

SEE ALSO

Net::ACL::Match, Net::ACL::Rule, Net::ACL, Net::ACL::Set::Union

AUTHOR

Martin Lorensen <bgp@martin.lorensen.dk>