Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

OOP's setter/getter method - is there a way to avoid them?

by tiny_monk (Sexton)
on Oct 27, 2015 at 08:15 UTC ( [id://1146074]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        use Data::Dumper;    
        print Dumper($obj);
    
  2. or download this
    
    $VAR1 = bless( {                                                      
    +                                                                     
    +                                      
    ...
                     'name' => 'apple'                                    
    +                                                                     
    +                                      
                   }, 'Fruit' );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1146074]
Approved by Perlbotics
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found