the methods you are injecting will be closures over the current $self, so it won't work if you have more than one object in the classWow, apparently not. Although I realised the subs were closures (by keeping the value $field), I never realised that this would break for more than one object instance.
In reply to Re^2: Subroutines with differing behaviour created from AUTOLOAD
by davis
in thread Subroutines with differing behaviour created from AUTOLOAD
by davis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |