Is there a way to get the name of the enclosing subroutine of a piece of perl code? For example:
sub foo { print where_am_i(); }
will output 'foo'
.
Is there a way to get the name of the enclosing subroutine of a piece of perl code? For example:
sub foo { print where_am_i(); }
will output 'foo'
.