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

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

Replies are listed 'Best First'.
Re: Re: Never
by theorbtwo (Prior) on May 13, 2003 at 05:23 UTC

    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).