in reply to Package Variables in Inheritance
Data you want to be inheirtable should go in the reference you are blessing (usually a hash). Use lexical variables (declared my at the top of your package) for private data.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Package Variables in Inheritance
by reyjrar (Hermit) on Oct 31, 2003 at 21:11 UTC | |
by ysth (Canon) on Nov 02, 2003 at 08:59 UTC | |
by tilly (Archbishop) on Nov 02, 2003 at 17:12 UTC |