Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Never

by Juerd (Abbot)
on May 12, 2003 at 23:41 UTC ( [id://257602]=note: print w/replies, xml ) Need Help??


in reply to Re: Never
in thread Never-to-use Perl features?

Objects.

Are these blessed values or something else? And why are they wrong?

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Never
by Abigail-II (Bishop) on May 12, 2003 at 23:53 UTC
    They are wrong because you have only one instance variable. Everyone would think it's odd if subroutines can have only one variable - it would still be workable of course, you'd just use a hash and put all your variables in that. Perl would be mocked at for having such silly subroutines, and it would have been fixed years ago.

    Why people accept such sillyness with objects, I don't know. But then, people accept Microsoft Windows as well.

    Abigail

      Actualy, subroutines in Perl do only have a single instance variable. In fact, it isn't even a variable. It's a list that gets associated with @_.


      Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found