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

Re: Inheritance and package variables

by broquaint (Abbot)
on Jul 26, 2004 at 06:15 UTC ( #377362=note: print w/ replies, xml ) Need Help??


in reply to Inheritance and package variables

Since perl's implementation OO doesn't cover variables this the place to use accessor methods e.g

use base 'Class::Accessor'; Guff->mk_accessors(qw/ child dispatch /); ## later on return $self->dispatch;
That's just one approach, but it's basically illustating how you might implement accessors to your package variables. See. Class::Accessor for more information on its usage.
HTH

_________
broquaint


Comment on Re: Inheritance and package variables
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-08-01 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls