Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Re: Short routines matter more in OO?

by Juerd (Abbot)
on Oct 14, 2003 at 07:09 UTC ( #299036=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub property1 {
        my ($self, $value) = @_;
    ...
        @_ >= 2 and $self->{property2} = $value;  # update: s/>/>=/
        $self->{property2};                       # update: s/property/pro
    +perty2/
    }
    
  2. or download this
    sub property1 : Property;
    sub property2 : Property;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-09-27 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?