Skip Menu |

This queue is for tickets about the Log-Trace CPAN distribution.

Report information
The Basics
Id: 18632
Status: open
Priority: 0/
Queue: Log-Trace

People
Owner: Nobody in particular
Requestors: lee.goddard [...] bbc.co.uk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



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;
From: lee.goddard [...] cpan.org
Beg your pardon, the example I offered works without a problem. Must be something I did elsewhere...