in reply to Re: While but not for clobbers $_
in thread While but not for clobbers $_
Although I can see the point of this to determine the scope of $_, I hope to never see code like this in production. If you want to have separate variables for nested loops, name the darn things and make the maintainer's life a little easier...
But then again, I just spent some time today tracing a bug in one of my scripts where I did something very similar (stomp on scope when I didn't mean to, which would have been really obvious with named variables). So who knows, the sanity you save may be your own.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: While but not for clobbers $_
by BrowserUk (Patriarch) on Apr 15, 2003 at 11:16 UTC |