Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: This regex surprised me ( qr//m, perldeltas, perlcritic )

by Anonymous Monk
on Aug 13, 2014 at 21:34 UTC ( [id://1097353]=note: print w/replies, xml ) Need Help??


in reply to This regex surprised me

Looks like perlop need updating to warn of this qr/STRING/msixpodual, you should perlbut it :)

Also, this perldelta note is findable with perldeltas - every perl*delta in one file with each version properly linkable searching for "qr/" will eventually find "perldeltas.html#p5101-Other_incompatible_changes" :)

Searching for "/m" will after about a dozen "next" clicks land on "perldeltas.html#p5120-Errata" which also mentions this (see perl5120delta#Errata )

I also think its important to note there exists a warning/linticism for this :) Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching - Always use the /m modifier with regular expressions.

So next time, try to search the Perl::Critic rules, and perldeltas :) the really visible/common changes/caveats usually show up in these two places :)

  • Comment on Re: This regex surprised me ( qr//m, perldeltas, perlcritic )

Log In?
Username:
Password:

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

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

    No recent polls found