Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Short routines matter more in OO?

by Abigail-II (Bishop)
on Oct 13, 2003 at 08:39 UTC ( #298794=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub accessor {
        my $self = shift;
        $self -> {key} = shift if @_;
        $self -> {key}
    }
    
  2. or download this
        $obj -> accessor ("value");
    
  3. or download this
        $obj -> {key} = "value";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-09-22 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls