Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: "Fields" for "Objects"

by vek (Prior)
on Jun 10, 2009 at 22:52 UTC ( [id://770468]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub accountnumber {
       my ($self, $num) = @_;
    ...
          return $self->{account_num};
       }
    }
    
  2. or download this
    use base qw(Class::Accessor);
    
    __PACKAGE__->mk_accessors(qw(accountnumber));
    

Log In?
Username:
Password:

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

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

    No recent polls found