Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 studying the Monastery: (11)
As of 2016-09-29 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (550 votes). Check out past polls.