Perl Monk, Perl Meditation | |
PerlMonks |
Re: (When) Should I 'use fields;'?by Hrunting (Pilgrim) |
on Dec 23, 2002 at 19:34 UTC ( [id://221935]=note: print w/replies, xml ) | Need Help?? |
If you use pseudo-hash-based objects, then yes, use fields is a good idea. However, pseudo-hashes are generally regarded as a good idea poorly implemented and their use is discouraged (at least, that's the impression I've gotten). I've done pseudo-hash-based classes before. It's nothing to write home about. I'd say you should skip it.
In Section
Seekers of Perl Wisdom
|
|