Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Short routines matter more in OO?

by Abigail-II (Bishop)
on Oct 13, 2003 at 08:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://298794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found