sub LOG; sub do_this { ....; ....; LOG "a message"; } sub do_that { ....; ....; LOG "another message..."; }