in reply to 'for' array being altered - scope
While I don't see where $_ is changed, keep in mind that it is global. It could be format_column_range or any other code invoked from this that changes it -- even though $_ is not explicitly passed to it.
I once accidently clobbered $_ because I had a method that, upon first execution, would read a config file. while(<FILE>){} does not look like it would clobber a global, does it? Took me longer than I liked to spot it ...
The Sidhekin
print "Just another Perl ${\(trickster and hacker)},"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 'for' array being altered - scope
by diotalevi (Canon) on Sep 26, 2002 at 12:18 UTC | |
by Sidhekin (Priest) on Sep 26, 2002 at 12:38 UTC | |
by diotalevi (Canon) on Sep 26, 2002 at 12:49 UTC |