Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 meditating upon the Monastery: (6)
As of 2025-01-20 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (59 votes). Check out past polls.