Programming with Moose/Syntax/override
Jump to navigation
Jump to search
To override a function use the Moose keyword override
.
override 'target' => &with;
##-or-
override 'target' => sub {};
An Example[edit | edit source]
Exports to override[edit | edit source]
super[edit | edit source]
Super passes the original @_. If you want to alter the args (@_), see around().