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 |