-
-
27 Sep 2004 18:37:55 UTC
- Distribution: Regexp-DefaultFlags
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (2001 / 0 / 0)
- Kwalitee
Bus factor: 0- 100.00% Coverage
- License: perl_5
- Perl: v5.5.0
- Activity
24 month- Tools
- Download (16.95KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Regexp::DefaultFlags - Set default flags on regular expressions
VERSION
This document describes version 0.01 of Regexp::DefaultFlags released September 28, 2004.
SYNOPSIS
use Regexp::DefaultFlags; # Match /ab[c-z]d/, but lay the pattern out more readably... $str =~ / a b [c-z] # Not fussy on the third letter d # But fussy again on the fourth /;
DESCRIPTION
When this module is
use
'd, it causes regexes in the current namespace to act as if the/xms
flags had been applied to them.See perlre for more details and caveats on these flags.
If an argument is passed to the
use
statement, the module uses the flags specified in that argument instead of/xms
. The replacement flags can be specified in any of the following ways:use Regexp::DefaultFlags qw( /x /i /m ); use Regexp::DefaultFlags qw( /xim ); use Regexp::DefaultFlags qw( xim );
TEST COVERAGE
------------------------------------------------------------------ File stmt branch cond sub pod time total ------------------------------------------------------------------ lib/Regexp/DefaultFlags.pm 100.0 100.0 n/a 100.0 n/a 100.0 100.0 Total 100.0 100.0 n/a 100.0 n/a 100.0 100.0 ------------------------------------------------------------------
AUTHOR
Damian Conway (damian@conway.org)
MAINTAINERS
Autrijus Tang <autrijus@autrijus.org>, Brian Ingerson <INGY@cpan.org>.
COPYRIGHT
Copyright (c) 2004, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
Module Install Instructions
To install Regexp::DefaultFlags, copy and paste the appropriate command in to your terminal.
cpanm Regexp::DefaultFlags
perl -MCPAN -e shell install Regexp::DefaultFlags
For more information on module installation, please visit the detailed CPAN module installation guide.