Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

accessor traits (Re: The Accessor Heresy)

by holli (Abbot)
on Nov 29, 2005 at 10:35 UTC ( [id://512564]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Class::Trait::TGetter;
    
    ...
    }
    
    1;
    
  2. or download this
    package Class::Trait::TSetter;
    
    ...
    }
    
    1;
    
  3. or download this
    package GetterSetter;
    
    ...
    }
    
    1;
    
  4. or download this
    package Person;
    
    ...
        # return GetterSetter without validation
        return GetterSetter->new($self, "name");;
    }
    
  5. or download this
    use Person;
    
    ...
        print $p->name->get, ", ", $p->age->get, "\n";
    };
    print $@;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found