# here's where the error message, $mess, gets constructed
$mess .= "\t$sub " if $error eq "called";
$mess .= "$error at $file line $line";
- if (exists $main::{'Thread::'}) {
+ if (defined &Thread::tid) {
my $tid = Thread->self->tid;
$mess .= " thread $tid" if $tid;
}
# remove them first.
my $msg;
$msg = "$error at $file line $line";
- if (exists $main::{'Thread::'}) {
+ if (defined &Thread::tid) {
my $tid = Thread->self->tid;
$mess .= " thread $tid" if $tid;
}