What about:
sub foo { my $self = shift; # What would be in the slice. my $extra = $extra{$self}; # The hidden stuff. ... } DESTROY { delete($extra{$self}); }
No magic, so it's reliable.
In reply to Re: (Expert) Splicing a slice
by ikegami
in thread (Expert) Splicing a slice
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |