eff_i_g has asked for the
wisdom of the Perl Monks concerning the following question:
I am logging the start and end of subroutine calls for easier debugging. I am doing this by manually placing a function at the start and end, like so: log_line('Begin (or End) call: sub_name');
This is great; however, I am starting to use return's within the routine and I have to repeat the above code before each return.
Is there some Perlish way to tell 'return' to call a function and then do its thing?