Sub::Regex - Creating Synonymous Subroutines
use Sub::Regex; sub /look(s|ing)?_for/ ($){ foobar blah blah } look_for('Amanda'); looks_for('Amanda'); looking_for('Amanda'); lOoKiNg_fOr('Amanda');
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.
xern <xern@cpan.org>
To install Sub::Regex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::Regex
CPAN shell
perl -MCPAN -e shell install Sub::Regex
For more information on module installation, please visit the detailed CPAN module installation guide.