Programming with Moose/Syntax/override

< Programming with Moose‎ | Syntax

To override a function use the Moose keyword override.

override 'target' => &with;
##-or-
override 'target' => sub {};


An ExampleEdit

Exports to overrideEdit

superEdit

Super passes the original @_. If you want to alter the args (@_), see around().