in reply to Re: How Do I Get the Line Number In My Error Message?
in thread How Do I Get the Line Number In My Error Message?
my $var = 123; DebugPrint("Var is $var.\n"); sub DebugPrint { my $msg = shift; print "Called from $CallingFunction(): $msg"; }
Is it possible to know what function called the DebugPrint() function (in other words, how do you set $CallingFunction)? If so, how?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How Do I Get the Line Number In My Error Message?
by Corion (Patriarch) on Nov 03, 2005 at 13:31 UTC | |
|
Re^3: How Do I Get the Line Number In My Error Message?
by Argel (Prior) on Nov 03, 2005 at 18:39 UTC | |
|
Re^3: How Do I Get the Line Number In My Error Message?
by azaria (Beadle) on Nov 03, 2005 at 13:33 UTC | |
by xdg (Monsignor) on Nov 03, 2005 at 15:49 UTC |