in reply to goto and AUTOLOADed methods
Why is this bad? Oh, let me count the ways!sub AUTOLOAD { my ($self, $method_name) = @_; $self->{$method_name} = $_[0] @_; return $self->{$method_name}; }
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: goto and AUTOLOADed methods
by ctilmes (Vicar) on Aug 01, 2003 at 13:38 UTC | |
by dragonchild (Archbishop) on Aug 01, 2003 at 13:44 UTC | |
by mpeppler (Vicar) on Aug 03, 2003 at 17:34 UTC | |
|
Re: Re: goto and AUTOLOADed methods
by fergal (Chaplain) on Aug 01, 2003 at 15:48 UTC | |
by dragonchild (Archbishop) on Aug 01, 2003 at 17:21 UTC | |
by fergal (Chaplain) on Aug 04, 2003 at 11:10 UTC |