more useful options | |
PerlMonks |
Re: Re: Re: Re: Re: Why get() and set() accessor methods are evilby hardburn (Abbot) |
on Nov 25, 2003 at 18:57 UTC ( [id://310018]=note: print w/replies, xml ) | Need Help?? |
One reason you wouldn't want to is that is Perl's context-sensitivity. By using ArrayList, which would be implemented as a scalar holding a referance, you're now putting things in scalar context that really should be in list context. BTW--Check out the Class::Iterator module for doing this. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Meditations
|
|