http://www.perlmonks.org?node_id=1199494


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

hence the line with the sub statement in our case

In the OP's case, yes.

I was talking about function calls in general. And for the case of displaying line numbers to a sentient being (which the OP did mention).

For a debugger, yes, the line of number of start of the function call is needed to be able to display the function call correctly.

Update: Though, for a GUI debugger, highlighting the line with the closing ) as long as there wasn't another function call on the same line.

Certainly, the least ambiguous is to have the line number with the start of the call (either the function name or the sub).

My main point of my previous post still remains: Anything line "in the middle" of the call is too ambiguous, therefore not acceptable.