Match-Any README


Match-Any documentation Contained in the Match-Any distribution.

Index


NAME

Top

  Regexp::Match::Any - Match many regexes against a variable

 


CHANGES

Top

  Version 0.03: Pass match_any() a second arguement of matching options [NOTE: array reference only]




SYNOPSIS

Top

  use Regexp::Match::Any;
  my @array = qw(Foo Bar Wibble);
  my $opt = 'i'; #ignore case
  my $var = "foo";
  if($var =~ match_any(\@array,$opt)){
    print "It matched\n";
  }else{
    print "It didn't match\n";
  }




DESCRIPTION

Top

  This module allows you to pass the match_any() function a reference to an array of regexes which will
  then return a full regex for the the variable to be matched against. Optionally, you can pass it
  matching arguements such as 'g' or 'i'. Pass these in one variable with no spaces.
  Note: I from personal experience have found this module to be very handy for use with Mail::Audit.




AUTHOR

Top

  Scott McWhirter <scott@kungfuftr.com>




COPYRIGHT

Top

HOW DO I INSTALL IT?

Top

  To install this module, cd to the directory that contains this README
  file and type the following:

    perl Makefile.PL
    make test
    make install

  Please also read the perlmodinstall man page, if available.



Match-Any documentation Contained in the Match-Any distribution.