Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 cooling their heels in the Monastery: (5)
As of 2014-09-03 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls