Symbol::Glob allows to remove items from the symbol table, painlessly.
SYNOPSIS
use Symbol::Glob;
# assumes current package unless specified
my $glob = Symbol::Glob->new({ name => 'foo' });
$glob->scalar(14);
$glob->sub( sub { return 'this is a sub' });
print $Some::Package::foo; # prints 14
$glob->delete('scalar');
print $Some::Package::foo; # undefined
print $glob->sub->(); # prints 'this is a sub'
$glob->delete; # removes entire glob
Symbol::Glob provides a simple interface to manipulate Perl's symbol table. You can define and undefine symbol table entries for scalars, arrays, hashes, and subs via simple method calls.
This module does not (currently) attempt to mess with filehandles, dirh
andles, or formats.
Product's homepage
Requirements:
· Perl