|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Re-use of a global matchby moritz (Cardinal) |
| on Aug 01, 2007 at 09:01 UTC ( [id://629995]=note: print w/replies, xml ) | Need Help?? |
|
You are using the g modifier.
That means the first time you are looking for the first match, second time for the second match - but there is no second match (and never will, because your regexp is anchored). See perlre and perlop for details.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||