1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/p5-Sub-Override/pkg-descr
Yen-Ming Lee 6923ce6e93 Sub::Override allows the programmer to simply name the sub to replace
and to supply a sub to replace it with.

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

PR:		75804
Submitted by:	Lars Eggert <lars.eggert at gmx.net>
2005-02-10 06:08:53 +00:00

11 lines
348 B
Plaintext

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: http://search.cpan.org/dist/Sub-Override/