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.