Update: Actually this would work.
If you had your function return tied scalars instead of blessed references, this problem would go away. This is one of those places where the tie mechanism just seems to make more sense.
In reply to Re: How do I pretend a reference isn't a reference
by BrowserUk
in thread How do I pretend a reference isn't a reference
by clinton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |