Perl: the Markov chain saw | |
PerlMonks |
Re^3: Can you override lexically scoped variables when sub-classing a module.by jandrew (Chaplain) |
on Oct 11, 2012 at 20:28 UTC ( [id://998536]=note: print w/replies, xml ) | Need Help?? |
Well if you can change the 'my' to 'our' in p1 then this works Package 1
Package 2
You get a global variable that you may not want
In Section
Seekers of Perl Wisdom
|
|