Subject: | Unexpected behaviour with sub-classes |
I may have misunderstood the POD, so please feel free to correct this
from 'bug' to 'operator error' without offending. I'm in a restrictive
environment (Broadcasting House) and am limited to tracing with this
module, but can't get it working with my class/sub-class code module,
though I have not looked into the guts.
The problems comes when these two modules and script are in seperate
files:
package BaseClass;
sub TRACE {}
sub TRACE_HERE {}
sub foo { die 'abstract' }
1;
package SubClass;
use base 'BaseClass';
# tracing stubs
sub TRACE {}
sub TRACE_HERE {}
sub foo {
TRACE_HERE;
TRACE('In a sub');
}
1;
use SubClass;
use Log::Trace warn => {Deep => 1};
SubClass::foo();
exit;