Hi Monks, I need your wisdom.
Can you please suggest on the best way to determine a subroutine name in Perl file by given a line number. Say for example I have a file that has many subs of which a sub called test_sub, that occupies lines between 38 and 100.
I need the script to return "test_sub" in case the line number given is within the line range of the sub. In cases where the line number hits another sub it should return the name of that sub, etc.