Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 surveying the Monastery: (7)
As of 2014-08-22 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls