in reply to Re: Subroutines with differing behaviour created from AUTOLOAD
in thread Subroutines with differing behaviour created from AUTOLOAD
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Subroutines with differing behaviour created from AUTOLOAD
by rinceWind (Monsignor) on Jun 08, 2004 at 14:58 UTC | |
by davis (Vicar) on Jun 08, 2004 at 15:13 UTC | |
by rinceWind (Monsignor) on Jun 09, 2004 at 10:50 UTC | |
|
Re^3: Subroutines with differing behaviour created from AUTOLOAD
by hv (Prior) on Jun 08, 2004 at 16:19 UTC |