There is perhaps Variable::Magic? It even has an example "useful for passing user data through limited APIs".
Caveat: "Magic is not copied on assignment." So whether this technique works for you depends on what your third party module does with the string.
In reply to Re: piggy back infos on a string scalar
by kikuchiyo
in thread piggy back infos on a string scalar
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |