|Perl Monk, Perl Meditation|
Re: Re: Re: using split on every element in an arrayby BrowserUk (Pope)
|on Jan 17, 2003 at 15:39 UTC||Need Help??|
Every element of an array is a named scalar variable.
Eg. $array = 'something'; $var = $array; etc.
You can therefore use them directly with split.
The contents of @array will remain unmodified for further use later unless you assign something to $element.
It might be clearer to you written this way.
The first version is usually considered better though.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.