in reply to Re: Re: Re: line number
in thread line number

That's what Carp is all about. It combines __LINE__ with caller magic to provide a stacktrace (similar is Devel::StackTrace)