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

Re: Re2: Perl Bug in Regex Code Block?

by japhy (Canon)
on Sep 03, 2001 at 20:13 UTC ( #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
Node Status?
node history
Node Type: note [id://109886]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2019-05-25 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (152 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!