in reply to Re: Re: Pseudo-switch question
in thread Pseudo-switch question
My rule of thumb is that when using a for/foreach loop, you do not need to localize $_, but if you are using a while(<>) loop, you must localize it.
This is because the for/foreach loop is already doing the local step for you, but it is the only time that this happens.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Pseudo-switch question
by pemungkah (Priest) on Oct 14, 2003 at 21:28 UTC |