in reply to
Executing line number
caller
can get you the line number where the current subroutine was called.
Carp
might also be of interest.
Comment on
Re: Executing line number
In Section
Seekers of Perl Wisdom