my $eval_string = sprintf '$return_val = $%s_of{refaddr $self};', +$attr;
I suppose $%s_of{...} is just a typo.
Update: Never mind, completely missed sprintf() there.
In reply to Re: Generic accessor for inside-out objects...
by parv
in thread Generic accessor for inside-out objects...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |