laziness, impatience, and hubris | |
PerlMonks |
${^POSTMATCH} problemby pl_pm (Initiate) |
on Jun 14, 2020 at 13:10 UTC ( [id://11118049]=perlquestion: print w/replies, xml ) | Need Help?? |
pl_pm has asked for the wisdom of the Perl Monks concerning the following question: Hi all, I have upgraded Perl from v5.24 to v5.30.3 and my script does not work now. The problem is in ${^POSTMATCH}, the following simple script illustrates it:
Perl v5.24.0 (and v5.26.1] returns the desired result Test TEXT-A,TEXT-B,TEXT-C but both v5.28.0 and v5.30.3 return Test TEXT-C,TEXT-C,TEXT-C. If I replace string concatenation with join() in the print() statement, all above mentioned versions return Test TEXT-C,TEXT-C,TEXT-C. Is it a bug or my use case is wrong? Many thanks for your opinion. Best regards
Back to
Seekers of Perl Wisdom
|
|