GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::ACL::Match::Scalar(3) User Contributed Perl Documentation Net::ACL::Match::Scalar(3)

Net::ACL::Match::Scalar - Class matching a scalar data element

    use Net::ACL::Match::Scalar;

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

    # Accessor Methods
    $rc = $match->match(@data); # same as: $data[1] eq 42 ? ACL_MATCH : ACL_NOMATCH;

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

new() - create a new Net::ACL::Match::Scalar object
    my $match = new Net::ACL::Match::Scalar(42,1);
    

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.

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

Net::ACL::Match, Net::ACL::Rule, Net::ACL, Net::ACL::Set::Scalar

Martin Lorensen <bgp@martin.lorensen.dk>
2003-06-06 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.