Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Regex returns match the first time. It returns everything thereafter

by AnomalousMonk (Archbishop)
on Nov 18, 2013 at 15:13 UTC ( [id://1063115]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regex returns match the first time. It returns everything thereafter
in thread Regex returns match the first time. It returns everything thereafter

This could be explained if  $_ had been assigned a defined value by some operation previous to the code shown in the OP.

The other twist I noticed is that the regex is really  /\Z/ and not  /\\Z/. The former regex matches everything, even undef (although a warning is still generated for a match against undef if warnings are enabled).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1063115]
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: (6)
As of 2024-04-25 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found