Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: How Large Does Your Project Have To Be to Justify Using Moose? (modular)

by stvn (Monsignor)
on Oct 23, 2011 at 18:05 UTC ( [id://933225]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    has 'foo' => ( 
        is       => 'bare', # no accessors
        init_arg => undef, # no longer accessible via constructor
    );
    
  2. or download this
    # One reasonable constructor interface for a square:
    Square->new( center => [ $x, $y ], width => $w );
    
  3. or download this
    package Square;
    use Moose;
    ...
        my $width  = $params->{width};
        $self->_construct_coordinates_from_center_and_width( $center, $wid
    +th );
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (1)
As of 2024-04-18 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found