Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 about the Monastery: (6)
As of 2016-06-26 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.