Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Tokenizing and qr// <=> /g interplay

by japhy (Canon)
on Apr 25, 2005 at 12:36 UTC ( [id://451160]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_->[0] = qr/\b(\Q$_->[0]\E)b/ for @corrections_to_make;
    
  2. or download this
    for my $crummy_good_ar (@corrections_to_make) {
      my ($crummy, $good) = @$crummy_good_ar;
      $file_in_string_form =~ s/$crummy/$good/ig;
    }
    
  3. or download this
    my $rx = qr/abc/;
    if ($str =~ /^($rx)$/) { ... }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://451160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-07-15 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.