Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to (When) Should I 'use fields;'?

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.

Replies are listed 'Best First'.
Re^2: (When) Should I 'use fields;'?
by Aristotle (Chancellor) on Dec 23, 2002 at 19:44 UTC
    Do note that as opposed to the current pseudohashes themselves, the fields pragma is there to stay and not going to be deprecated anytime soon.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://221935]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-26 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found