good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Monkly Mentors,
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? Thank You. In reply to Tweaking 'return'. by eff_i_g
|
|