Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chanting in the Monastery: (4)
As of 2025-01-24 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (68 votes). Check out past polls.