in reply to Re: piggy back infos on a string scalar
in thread piggy back infos on a string scalar

Thanks, I already tested the overload approach and it works fine ... at least for the time being.

The third party module is DBI and it's the statement string with attached debug infos.

When inspecting $sth->{Statement} I can see the original object while $sth = $dbh->prepare($stmt_obj) processed the stringification.

(Alas it's a bit more complicated since DBI depends on driver implementations which may differ, I already stumbled over things which are different for MySQL than documented, so testing and adjusting might be needed.)

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery