in reply to Re^2: Acessing an object's variable
in thread Acessing an object's variable

Perl OO is a hack. As Larry has said, it was an exercise in minimalism - it proves that you can do OO with extremely little support from the language.

That's why OO in perl6 will look quite different - it has solved the problem of needing hacks to have objects with data.

I'm afraid that as long as you hava a Java mindset (nothing wrong with that), Perl OO will remain a major disappointment to you. And I can't disagree with you - I don't like Java, but I vastly prefer its OO system over Perls'.

Perl --((8:>*

Replies are listed 'Best First'.
Re^4: Acessing an object's variable
by JohnMG (Beadle) on Dec 13, 2005 at 17:00 UTC

    I'm afraid that as long as you hava a Java mindset (nothing wrong with that), Perl OO will remain a major disappointment to you.

    I always just figured I'd just plod along and use Perl5's hash-based objects until Perl6 really arrives, then happily switch over and use whatever OO-support Perl6 provides.

      If that works for you, then you should do that. Perl6 has been taking a bit too long for my annoyances with OO though.
      Perl --((8:>*