Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 imbibing at the Monastery: (10)
As of 2014-07-29 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls