in reply to Perl Privvies

I read in the new book, Perl Hacks, (Hack #43) Make Methods Really Private, which can allow access control.

My personal preference is Class::Std, it implements PUBLIC, PRIVATE and PROTECTED attributes that offer functionality for methods like Java.

I am sure that there are more than those two, though they are the ones that I know off the top of my head...

Replies are listed 'Best First'.
Re^2: Perl Privvies
by Ovid (Cardinal) on Jul 18, 2006 at 12:06 UTC

    You know, inside-out objects were the one thing I thought I really disagreed with in Damian's book. After all, with competent developers, it's easy to get folks to respect encapsulation and not do naughty things. Now I work at a new company and after looking at the code, I'm beginning to think that inside-out objects are a much better idea "for the masses" than I thought.

    Cheers,
    Ovid

    New address of my CGI Course.

      I'm beginning to think that inside-out objects are a much better idea "for the masses" than I thought.

      Glad to hear it :-)

      For me the problem isn't folk doing naughty things. Folk poking deserve all they get. The problem are the accidental interactions...