more useful options | |
PerlMonks |
Re: Understanding regular expressions: why do I have to use map to clear up undefs in regex output?by jwkrahn (Abbot) |
on Jun 19, 2009 at 22:15 UTC ( [id://773143]=note: print w/replies, xml ) | Need Help?? |
I would like to know what it is about my pattern that creates all those undefs Your pattern (\d+) | (?:"(.+?)") has two groups of capturing parentheses so when one group matches the other returns undef and vice-versa.
In Section
Seekers of Perl Wisdom
|
|