|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Can you override lexically scoped variables when sub-classing a module.by lamprecht (Friar) |
| on Oct 12, 2012 at 17:50 UTC ( [id://998758]=note: print w/replies, xml ) | Need Help?? |
|
Does p1 access $var1 directly? Otherwise you could override get_var1. (Possibly with a default SUPER call unless it has been set in p2). Cheers
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||