Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: caller() returns wrong line on multi-line function call

by Anonymous Monk
on Sep 13, 2017 at 19:36 UTC ( [id://1199345]=note: print w/replies, xml ) Need Help??


in reply to caller() returns wrong line on multi-line function call

this is a problem for you or just a curiosity? this function call occupies three lines:
foo( __LINE__, __LINE__, __LINE__);

Replies are listed 'Best First'.
Re^2: caller() returns wrong line on multi-line function call
by jh (Beadle) on Sep 14, 2017 at 14:31 UTC

    It is 90% a curiosity, but I have debugging routines that occasionally report the wrong calling line because of this bug.

    Passing __LINE__ to the test function was just illustrative.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1199345]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-23 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found