Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 pondering the Monastery: (8)
As of 2014-12-25 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (161 votes), past polls