    Annotate this POD   New  1 Open  1 View/Report Bugs Module
Version: 1.075   Source     Net::Radius::Server::Match - Base
class for match methods     package My::Radius::Match;   use
base 'Net::Radius::Server::Match';     sub match_foo { ... }
sub match_bar { ... }   sub match_baz { ... }    # Meanwhile, in
a configuration file nearby...   my $match =
My::Radius::Match->new({ foo => 'x', bar => 'y' });   my
$match_sub = $match->mk;    # Alternatively, in a more compact
notation...   my $match_sub = My::Radius::Match->mk({ foo =>
'x', bar => 'y' });   Net::Radius::Server::Match is a base class
for developing "match" methods to be used in Net::Radius::Server
rules.   Creates a new Net::Radius::Server::Match object.
$hashref referenes a hash with the attributes that will apply to
this object, so that multiple match methods (that will share the
same underlying object) can be created and given to different
rules.   This method returns a sub suitable for calling as a
match method for a Net::Radius::Server rule