Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Regexp do's and don'ts

by muba (Priest)
on Aug 14, 2004 at 21:03 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found