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

Re: Re2: Perl Bug in Regex Code Block?

by japhy (Canon)
on Sep 03, 2001 at 20:13 UTC ( [id://109886]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "12180" =~ m{
      (?{ local @n = () })
    ...
      \d
      (?{ @d = @n })
    }x;
    
  2. or download this
    local @n;
    /(.)(?{ ++$n[0] })^/;
    @d = @n;
    
  3. or download this
    $p = '\w+-\d+';
    /$p/;
    /$p/;
    
  4. or download this
    $p = '\w+-\d+';
    for $i (1,2) { /$p/ }
    
  5. or download this
    ($x,$y) = ('a+', 'b');
    for (1,2) {
      /$x$y/;
      ($x,$y) = ('a', '+b');
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found