mjd-perl-pm on Tue, 25 Apr 2000 19:34:14 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Perl 5.6 question


> What does this look like in the method?  Is it as simple as
> 
>   sub color:lvalue { $_[0]->{'_color'} }

That's exactly what it looks like.

> Can subs be marked :'lvalue' dynamically, so AUTOLOAD can whip up such
> nifty attribute accessors on-the-fly?

Good question.  I'm not sure.

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**