use attributes(); sub Hi { "Hi" }; attributes::->import(__PACKAGE__, *{$_}{CODE}, 'prototype(\@\@)') for *Hi;