|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Re: Re: Re: How to remove the $1 hard codingby chunlou (Curate) |
| on Aug 22, 2003 at 19:37 UTC ( #285899=note: print w/ replies, xml ) | Need Help?? |
|
Probably you meant this. You need () to capture something into the array. You need the switch /g if you want to put every match into an array, not just the first match (hence for the index [$i] to work).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||