Stories
Slash Boxes
Comments
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)

runrig
  dougwNO@SPAMcpan.org

Just another perl hacker somewhere near Disneyland

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

I also have some modules [cpan.org] on CPAN [cpan.org] some of which are marginally [cpan.org] more [cpan.org] useful [cpan.org] 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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.