package My::Keyword; use Keyword::Simple; sub import { Keyword::Simple::define(foo => \&_parse_foo); } sub _parse_foo { ...; } 1;