Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Strange regex to test for newlines: /.*\z/by Ojosh!ro (Beadle) |
on May 21, 2007 at 13:47 UTC ( [id://616560]=note: print w/replies, xml ) | Need Help?? |
I don't think it's a bug.
When the match is in /m mode .* will match anything BUT a newline. ( when in /s mode .* will match anything )
So basically what this test does is :
BTW. setting $/ has no influence on /m or /s whatsoever?
if( exists $aeons{strange} ){ die $death unless ( $death%2 ) }
In Section
Seekers of Perl Wisdom
|
|