Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Anonymous Monk
on Sep 13, 2017 at 19:36 UTC ( #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 (Sexton) 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
Node Status?
node history
Node Type: note [id://1199345]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-11-25 06:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?