The stupid question is the question not asked | |
PerlMonks |
Re^2: Determing whether a regexp has capturing matchesby adrianh (Chancellor) |
on Feb 27, 2007 at 15:58 UTC ( [id://602319]=note: print w/replies, xml ) | Need Help?? |
$1 will be set to undef after a match with no parentheses. Is this documented behaviour? I could have sworn I'd used a perl at some point where $1 persisted unless you made another captured match. I could, of course, be making shit up :-)
In Section
Seekers of Perl Wisdom
|
|