in reply to Re: 'for' array being altered - scope
in thread 'for' array being altered - scope
@mg = qw(Sam sat on the ground and put his head in his hands. 'I wish + I had never come here, and I don't want to see no more magic,' he sa +id, and fell silent.); ## standard way # create a new array and assign back into place @mg = map ucfirst, @mg; # OR... ## work in place # alter existing array $_ = ucfirst() for @mg;
Update And this reply misses the entire point of the original question. Oopsie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: 'for' array being altered - scope
by Sidhekin (Priest) on Sep 26, 2002 at 12:38 UTC | |
by diotalevi (Canon) on Sep 26, 2002 at 12:49 UTC |