in reply to Re: Re: Re: Pseudo-switch question
in thread Pseudo-switch question
I tend to assume that someone else reading the code might not think about $_ being global, alter the code so that $_ would get clobbered, and then be confused. If I've localized $_, and also commented why I've done it, it makes it easier to maintain. And I'm all about maintaining.
I suppose the Right Thing would be to not localize and comment that the for loop does it for me. :)
|
|---|