GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Regexp::DefaultFlags(3) User Contributed Perl Documentation Regexp::DefaultFlags(3)

Regexp::DefaultFlags - Set default flags on regular expressions

This document describes version 0.01 of Regexp::DefaultFlags released September 28, 2004.

    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
            /;

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 );

 ------------------------------------------------------------------
 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
 ------------------------------------------------------------------

Damian Conway (damian@conway.org)

Autrijus Tang <autrijus@autrijus.org>, Brian Ingerson <INGY@cpan.org>.

   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.
2004-09-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.