But is there a reason why you make %attr a package-var? I'd rather use a lexical closure var my %attr
FWIW: Using a scalar-ref as object is clever, but in this case I'm overloading all deref-operators, hence we are back to the original problem.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^2: De-Overload reference?
by LanX
in thread De-Overload reference?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |