in reply to Using AUTOLOAD to create class methods
AUTOLOAD does not only create subs, but is used to decide on which sub to call. So, you can either call an existing sub, or create one and then call it. to avoid confusion with caller() and stuff, usually goto is used instead of a simple call. But in your code, there is neither a call nor a goto in AUTOLOAD().
I think I saw a tutorial here somewhere, but the last time I was here was about 2.5 years ago, so there.
My public keyperl -e'$b=unpack"b*",pack"H*","59dfce2d6b1664d3b26cd9969503";\ for(;$a<length$b;$a+=9){print+pack"b8",substr$b,$a,8;}'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using AUTOLOAD to create class methods
by radiantmatrix (Parson) on Nov 01, 2005 at 22:21 UTC | |
by ikegami (Patriarch) on Nov 01, 2005 at 22:47 UTC | |
by radiantmatrix (Parson) on Nov 03, 2005 at 16:44 UTC |
In Section
Seekers of Perl Wisdom