blob: 14effccacac6815f7cb44632875612c0ea6e9e80 (
plain)
1
2
3
4
5
6
7
8
9
10
|
Sub::Override allows the programmer to simply name the sub to replace
and to supply a sub to replace it with.
my $override = Sub::Override->new('Some::sub', sub {'new data'});
# which is equivalent to:
my $override = Sub::Override->new;
$override->replace('Some::sub', sub { 'new data' });
WWW: https://metacpan.org/release/Sub-Override
|