Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: RFR: Inside-out classes - a Class::InsideOut primer

by xdg (Monsignor)
on Mar 16, 2007 at 13:04 UTC ( #605148=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub new {
       my $self = shift;
       register( $self );
    
  2. or download this
    sub new {
       my $class = shift;
       my $self = register( $class );
    
  3. or download this
    $manager->{phone} = '555-1313';
    
    # {{what is the behavior of this??}}
    
  4. or download this
    sub new {
       my $class = shift;
       my $self = register( {}, $class );  # register does the bless, too
    
  5. or download this
    public   birthday => my %birthday, { set_hook =>; \&_set_birthday };
    
  6. or download this
    sub _get_birthday {
        strftime '%m/%d/%Y', localtime( $_ ); # but NOT just localtime()
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2015-08-01 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls