Wally Hartshorn has asked for the wisdom of the Perl Monks concerning the following question:
I'm just starting to get my feet wet in OOP and am busily reading Damian Conway's "Object Oriented Perl". In chapter 4, he discusses pseudo-hashes and fields.pm. The book was written around the time of Perl 5.005, and he emphasizes that pseudo-hashes are experimental.
Searching through the messages here on PerlMonks, it appears that pseudo-hashes are going to go away, but that the "use fields" pragma will remain. Correct?
If this is the case, what are most OOP programmers doing?? Should I generally create objects as regular hashes, or should I be using the "use fields" pragma? I'm beginning to suspect that "use fields" is an idea whose time still hasn't come, but I'm not sure whether I would be causing myself any problems by using it.
Any guidance would be appreciated!
Wally HartshornEdit: closed BOLD tag. larsen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hashes vs "use fields" for an Object?
by chromatic (Archbishop) on Sep 16, 2002 at 18:43 UTC | |
|
Re: Hashes vs "use fields" for an Object?
by sauoq (Abbot) on Sep 16, 2002 at 18:58 UTC | |
|
Re: Hashes vs "use fields" for an Object?
by BrowserUk (Patriarch) on Sep 16, 2002 at 18:05 UTC |