go ahead... be a heretic | |
PerlMonks |
Re: ${^POSTMATCH} problemby LanX (Saint) |
on Jun 14, 2020 at 13:59 UTC ( [id://11118051]=note: print w/replies, xml ) | Need Help?? |
I can't run many tests right now, but what you describe sounds like a side effect / evaluation order problem with using this special variable multiple times inside the same statement. (Similar with using func($x++,$x--) where the evaluation order is undefined and aliases are passed) Splitting the statement into multiple ones with just one postmatch should fix it. I'll try later...
UpdateSee Re^2: ${^POSTMATCH} problem
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|