L
lvirden
I'm trying to track down a perl bug, and could use some debugging tips
from the experts.
The error I am getting says:
Not a SCALAR reference at Base.pm line 1750.
And that particular line is about the first thing in the function,
and says:
return undef unless defined $$ref;
Now, certainly I can add some code in before this line to print
$ref . But I'm also going to to figure out who is calling the function
with the errant piece of code.
Is there a way that I can test to see if $ref is a scalar reference,
display the bad reference value, and then invoke the caller function to
get the stack trace, without actually raising a perl error?
from the experts.
The error I am getting says:
Not a SCALAR reference at Base.pm line 1750.
And that particular line is about the first thing in the function,
and says:
return undef unless defined $$ref;
Now, certainly I can add some code in before this line to print
$ref . But I'm also going to to figure out who is calling the function
with the errant piece of code.
Is there a way that I can test to see if $ref is a scalar reference,
display the bad reference value, and then invoke the caller function to
get the stack trace, without actually raising a perl error?