Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Use global flag when declaring regular expressions with qr?

by Anonymous Monk
on Oct 29, 2024 at 15:42 UTC ( [id://11162487]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Use global flag when declaring regular expressions with qr?
in thread Use global flag when declaring regular expressions with qr?

It is up to the reader to decide if that increases or decreases maintainability :)

On the one hand, I really like how there are so many similarities with shell scripting, in terms of syntax at least. On the other, it's a bit confusing to keep track of so many implicit behaviors. I was always told to be explicit whenever possible as it makes code easier to reason about. I'm afraid to forget what variables like @_ do if I don't use them often enough! :D

Thanks for the tips!

Replies are listed 'Best First'.
Re^5: Use global flag when declaring regular expressions with qr?
by ysth (Canon) on Oct 29, 2024 at 17:44 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2026-02-09 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.