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?? |
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!
In Section
Seekers of Perl Wisdom
|
|