Net::ACL::Set::Scalar - Class replacing a scalar data element
use Net::ACL::Set::Scalar; # Construction my $set = new Net::ACL::Set::Scalar(1,42); # Accessor Methods @data = $set->set(@data); # same as: $data[1] = 42;
This module is a very simpel array ellement replacement utility to allow simple value replacement with Net::ACL::Rule.
my $set = new Net::ACL::Set::Scalar(1,42);
This is the constructor for Net::ACL::Set::Scalar objects. It returns a reference to the newly created object.
It takes one argument. If the argument is an array reference with one element, the element will be placed instead of the first argument to the set method.
If an array reference has more then one element, the second element should be the argument number to be replaced in the set method.
Otherwise, the value will directly be used instead of the first argument of the set method.
This function modifies the arguments according to the arguments of the constructor and returns them.
Net::ACL::Set, Net::ACL::Rule, Net::ACL
Martin Lorensen <bgp@martin.lorensen.dk>
To install Net::ACL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ACL
CPAN shell
perl -MCPAN -e shell install Net::ACL
For more information on module installation, please visit the detailed CPAN module installation guide.