![]() |
|
more useful options | |
PerlMonks |
Can't figure out why capture group is not output by substitution regexby nysus (Parson) |
on Aug 24, 2020 at 15:12 UTC ( #11121035=perlquestion: print w/replies, xml ) | Need Help?? |
nysus has asked for the wisdom of the Perl Monks concerning the following question: I got this:
I expect this to be output:
Output I get:
I can fix this by assigning $2 go a new scalar variable first and then using the new variable. But I'm not sure why I have to do that.
$PM = "Perl Monk's";
Back to
Seekers of Perl Wisdom
|
|