in reply to sub foo:bar {}?
perl -wMstrict -e " { no strict 'refs'; local *{ 'foo:bar' } = sub { print qq{hi there $_[0]} }; *{ 'foo:bar' }{CODE}->('sailor'); } " hi there sailor [download]