Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Should I use Fields, InsideOuts, or Properties?

by djp (Hermit)
on Jul 08, 2005 at 04:00 UTC ( #473318=note: print w/replies, xml ) Need Help??


in reply to Re: Should I use Fields, InsideOuts, or Properties?
in thread Should I use Fields, InsideOuts, or Properties?

That's (a) disgusting, and (b) largely useless, since it won't catch $hashref->{tipo};.

Replies are listed 'Best First'.
Re^3: Should I use Fields, InsideOuts, or Properties?
by dmitri (Priest) on Jul 08, 2005 at 13:18 UTC
    The whole point is not to use quoted or literal strings for hash keys, but make yourself use constants and force compile-time check by placing parentheses around them.

    One added benefit of such approach is that if you want to change the actual key value, you only have to change it in one place.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://473318]
help
Chatterbox?
[Corion]: acapella hessian rap, but they also do melodic stuff, like Shout (Tears for Fears)
[karlgoethebier]: Rap rhymes to crap. Ouch!
[karlgoethebier]: Unne hip unne hop unne schoppe inne kopp...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-11-18 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?