BSD Ports

devel/p5-Sub-Delete 1.00002_1 DragonFly

Perl module enabling one to delete subroutines

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
7.4 KiB, 12.6 KiB installed

Description

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).

In the other systems

The newest version among them is 1.00003, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Sub-Delete1.00002_1none known-[email protected]-
FreeBSDdevel/p5-Sub-Delete1.00003 newestnone known-[email protected]-
HardenedBSDdevel/p5-Sub-Delete1.00003 newestno data-[email protected]-
GhostBSDdevel/p5-Sub-Delete1.00003 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Sub-Delete

From DPorts:

cd /usr/dports/devel/p5-Sub-Delete && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1