Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 musing on the Monastery: (4)
As of 2015-07-28 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls