Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: ${^POSTMATCH} problem

by LanX (Saint)
on Jun 14, 2020 at 13:59 UTC ( [id://11118051]=note: print w/replies, xml ) Need Help??


in reply to ${^POSTMATCH} problem

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...

Update

See Re^2: ${^POSTMATCH} problem

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-19 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found