in reply to Re: De-Overload reference?
in thread De-Overload reference?

Hmm ... inside outs are an option, forgot about them. Thanks. :)

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

Replies are listed 'Best First'.
Re^3: De-Overload reference?
by NERDVANA (Priest) on Apr 18, 2024 at 02:47 UTC
    But is there a reason why you make %attr a package-var?

    In case a sub-class wants to inspect (or extend) my fields. I'm in the opposite camp as Ovid.