Comments/suggestions:
is likely to be common enough to encapsulate. Maybe:my $foo = attached($ref,'elements') || attach_var($ref,$something,'ele +ments')
my $foo = attach_default($ref, $something, 'elements');
Can't really comment on the implementation - I don't know the internals well enough.
In reply to Re: RFC Magic::Attach
by adrianh
in thread RFC Magic::Attach
by shotgunefx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |