#in package bar sub dostuff { return $_[0]->SUPER::dostuff() if $condition; }