Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: local vs my

by graff (Chancellor)
on Sep 03, 2002 at 03:22 UTC ( #194677=note: print w/replies, xml ) Need Help??


in reply to Re: local vs my
in thread local vs my

Well, the answer from "received wisdom" is that maintenance often involves adding or modifying functionality, which may entail using new variables, and if there's no clear pattern for making up variable names, and you're not paying attention, ... etc.

But your point is well taken, and it's worth noting that even without "use strict", you can still declare variables with "my" to get the intended effect of scoping, just to make sure a newly added variable doesn't trounce a "legacy" variable that happens to have the same name.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2023-06-06 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?