Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Regexp do's and don'ts

by muba (Priest)
on Aug 14, 2004 at 21:03 UTC ( #383015=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    use strict;
    use warnings;
    ...
        "Global" => sub { "Perl is cool" =~ m/Perl/g }
        }
    );
    
  2. or download this
                    Rate     Global Non-global
    Global     1351351/s         --        -9%
    Non-global 1492537/s        10%         --
    
  3. or download this
    s/
        (                                           # Match and backrefere
    +nce to either
    ...
            "I don't know $1 very well"             # or this when java is
    + found
        :"I do not wish to consider $1"             # or this when somethi
    +ng else is found.
    /ex;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://383015]
Approved by Enlil
Front-paged by TStanley
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-11-27 08:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (182 votes), past polls