I've got a CGI webapp that is starting to grow
Right now it has some elementary debugging support--
sub x{
my ($self)= @_;
DEBUG_FUNCTION_NAME && MyDebugger::log_function_name( $self );
}
MyDebugger::log_function_name does all the necessary operations on caller(1) to get me the info I need.
I know some of the CPAN developer packagers have figured out ways to hook into a function as it is called. unfortunately, I haven't been able to reverse engineer how to do it
Does anyone know if its possible for me to do this in perl itself (without using xs ) : to have a specific function called per sub call ?