in reply to Re^2: caller() returns wrong line on multi-line function call
in thread caller() returns wrong line on multi-line function call

No need to argue, the one true line is by definition where a statement starts.

This is for sure a bug and it's not caller's fault.

Probably also affecting other statements not only function calls.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re^3: caller() returns wrong line on multi-line function call

Replies are listed 'Best First'.
Re^4: caller() returns wrong line on multi-line function call
by GrandFather (Saint) on Sep 14, 2017 at 22:10 UTC
    the one true line is by definition where a statement starts.

    How can that possibly be right? By definition you don't have a call until the close bracket for the argument list because you don't have enough information to make the call until then!

    Like I said already, good stories could be made for almost any line. :-)

    Premature optimization is the root of all job security