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
In reply to Re: Package Variables in Inheritance
by hardburn
in thread Package Variables in Inheritance
by reyjrar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |