☼ 林永忠 ☼ > Sub-Regex-0.02 > Sub::Regex

Download:
Sub-Regex-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Sub::Regex - Creating Synonymous Subroutines

SYNOPSIS ^

  use Sub::Regex;
  sub /look(s|ing)?_for/ ($){
     foobar blah blah
  }

  look_for('Amanda');
  looks_for('Amanda');
  looking_for('Amanda');
  lOoKiNg_fOr('Amanda');

DESCRIPTION ^

Sub::Regex is a small tool for users to create a subroutine with multiple names. The only thing to be done is replace the normal name of a subroutine with a regular expression. However, regexp modifiers are not allowed, and matching is all considered case-insensitive.

AUTHOR ^

xern <xern@cpan.org>

syntax highlighting: