in reply to Inheritance question
Wrap your packages inside a BEGIN { ... } block and they'll work fine.
Update:
@ISA = qw/a/ needs to be run before you try to use the inheritance it defines. This doesn't happen in your orignal code, but the addition of the BEGIN block forces perl to compile and run the block before your calls to new.
|
|---|