Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Better Inside-Out Objects :)

by Ovid (Cardinal)
on Oct 06, 2006 at 16:36 UTC ( [id://576707]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Encapsulation;
    
    sub new {
    ...
    }
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    is $o->foo, 42, "secrets of different classes do not interfere";
    
    ok !defined $o->{secret}, 'cannot reach into objects';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://576707]
Approved by planetscape
Front-paged by jdporter
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found