Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Modify the Object

by tobyink (Abbot)
on Oct 02, 2012 at 16:02 UTC ( #996876=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Local::Class;
    sub new
    ...
    
    $obj->access_A(0);
    say $obj->access_A;   # says 2 !!!
    
  2. or download this
    sub access_A
    {
    ...
       $self->{A} = shift if @_;
       return $self->{A};
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (16)
As of 2015-07-31 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls