Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

runrig (3385)


Just another perl hacker somewhere near Disneyland

I have this homenode [] of little consequence on Perl Monks [] that you probably have no interest in whatsoever.

I also have some modules [] on CPAN [] some of which are marginally [] more [] useful [] than others.

Journal of runrig (3385)

Wednesday June 02, 2004
01:46 PM

Autoloaded lvalue subs

[ #19055 ]
During development, I didn't want to stop and define a bunch of simple methods, so through the magic of AUTOLOAD, I just let them create themselves. But I ran across some interesting behavior. First, I didn't know you had to (or could) define AUTOLOAD as an lvalue sub. Second, I didn't know you had to fool the compiler into making it think AUTOLOAD was returning a valid lvalue.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.