Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Empty qr// fails to match -- Is this known bug? (bug)

by rir (Vicar)
on Oct 23, 2008 at 16:23 UTC ( [id://719074]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Empty qr// fails to match -- Is this known bug? (bug)
in thread Empty qr// fails to match -- Is this known bug?

I don't see why the stringified representation of a Regex would be given any importance here. To me, the whole point of compiled Regexes is that they are not string Scalars.

Globals suck.

Be well,
rir

  • Comment on Re^3: Empty qr// fails to match -- Is this known bug? (bug)

Replies are listed 'Best First'.
Re^4: Empty qr// fails to match -- Is this known bug? (bug)
by chibiryuu (Beadle) on Oct 23, 2008 at 17:11 UTC
    It's still inconsistent. /$T$U/, which is *also* empty (if you ignore the stringified representation), doesn't act like an empty //.
      Oh my, oh my $var if 0; another odd bug with desirable behaviour.

      Be well,
      rir

Log In?
Username:
Password:

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

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

    No recent polls found