RECENT POSTS

P5-sub-override

May 26, 2018

Perl extension for easily overriding subroutines

SubOverride allows the programmer to simply name the sub to replace and to supply a sub to replace it with.

my $override = SubOverride->new’Somesub’, sub ‘new data’;

# which is equivalent to my $override = SubOverride->new; $override->replace’Somesub’, sub ‘new data’ ;

WWW http//search.cpan.org/dist/Sub-Override/