Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Empty qr// fails to match -- Is this known bug?

by mr_mischief (Monsignor)
on Oct 23, 2008 at 22:59 UTC ( [id://719189]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $T = qr//;
    $U = qr//;
    ...
    $foo =~ /b/;
    print '$foo got matched against /b/: '
        .  ( ( $foo =~ $U ) ? 'pass' : 'fail' ) . "\n"
    
  2. or download this
    t: 1    u: 2
    before $t gets reassigned: fail
    ...
    $u never gets reassigned: fail
    $foo never got assigned a $1 or $2 or regex matched: fail
    $foo got matched against /b/: pass
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found