Git Product home page Git Product logo

match-any's Introduction

=head1 NAME

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

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


=head1 SYNOPSIS

  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";
  }


=head1 DESCRIPTION

  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.


=head1 AUTHOR

  Scott McWhirter <[email protected]>


=head1 COPYRIGHT

  Copyright (c) 2001, Scott McWhirter. All Rights Reserved.  This module is
  free software. It may be used, redistributed and/or modified under the
  terms of the Perl Artistic License. 
  ( see http://www.perl.com/perl/misc/Artistic.html )

=head1 HOW DO I INSTALL IT?

  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's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.