Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by japhy (Canon)
on Apr 23, 2005 at 17:09 UTC ( [id://450738]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ("ab", "cd") {
      if ($str =~ /$_/) { ... }
    }
    
  2. or download this
    ($x, $y) = ("ab", "c");
    for (1, 2) {
      if ($str =~ /$x$y/) { ... }
      ($x, $y) = ("a", "bc");
    }
    
  3. or download this
    my @strings = make_10_strings();
    for (@strings) {
    ...
        if ($_ =~ $p) { handle($_) }
      }
    }
    
  4. or download this
    my @strings = make_10_strings();
    for (@strings) {
    ...
        if ($_ =~ $p) { handle($_) }
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-06-14 03:19 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.