Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: (Ovid) Re: my and local differences

by HaB (Sexton)
on Nov 10, 2000 at 23:29 UTC ( #41004=note: print w/ replies, xml ) Need Help??


in reply to (Ovid) Re: my and local differences
in thread my and local differences

First, thanks to everyone for the comments...all of that helps.
I think the reason I've never had to use local before is that I A - rarely mess with the values to punctuation vars, and B - almost always explicitly pass a value to a subroutine that requires one, instead of relying on the global value. IOW, I use my($var) in a sub, and if I call any other routines in the sub using that var, I call them with my_sub($var);

I guess it's just weird that it has never come up before.


-HaB


hword.


Comment on RE: (Ovid) Re: my and local differences

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (16)
As of 2015-07-06 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls