FreeBSD.software
Home/devel/p5-Sub-Delete

p5-Sub-Delete

1.00003devel

Perl module enabling one to delete subroutines

This module provides one function, delete_sub, that deletes the subroutine whose name is passed to it. (To load the module without importing the function, write use Sub::Delete();.) This does more than simply undefine the subroutine in the manner of undef &foo, which leaves a stub that can trigger AUTOLOAD (and, consequently, won't work for deleting methods). The subroutine is completely obliterated from the symbol table (though there may be references to it elsewhere, including in compiled code).

$pkg install p5-Sub-Delete
metacpan.org/release/Sub-Delete
Origin
devel/p5-Sub-Delete
Size
12.4KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
1 packages

Dependencies (1)

Required By (1)