Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: "Fields" for "Objects"

by vek (Prior)
on Jun 10, 2009 at 22:52 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2022-07-05 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?