in reply to Re: push foreach glob - bug?
in thread push foreach glob - bug?
Modifying elements of an array over which one is iterating doesn't cause problems. It's done all the time:
s/^\s+//, s/\s+$// for @array;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: push foreach glob - bug?
by shmem (Chancellor) on Jan 13, 2010 at 23:10 UTC |
In Section
Seekers of Perl Wisdom