![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Re: arraysby arturo (Vicar) |
on Apr 04, 2003 at 19:09 UTC ( #248166=note: print w/replies, xml ) | Need Help?? |
Let me add the caveat that since the construction makes $_ an alias for the current element being processed, that your number stripping substitution modifies the original array, which may or may not be appropriate. To non-destructively process the array, you might capture before the first digit to get your hash key. If not P, what? Q maybe?
In Section
Seekers of Perl Wisdom
|
|