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).
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.00002-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
1.00002-bp155.2.10 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
1.00002-bp154.1.16 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.00002-bp153.1.14 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
1.00002-bp152.1.9 info | GA Release | 2020-04-16 | 15 SP2 |
|
|