Skip to content

Commit

Permalink
s/Stash::Manip/Package::Stash/g
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed May 14, 2010
1 parent b08c2ab commit 16d8eca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,4 +1,4 @@
- Use Stash::Manip for the stash manipulation bits (doy).
- Use Package::Stash for the stash manipulation bits (doy).

[0.14] Thu Mar 18 11:15:38 CET 2010
- Disable auto_install.
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Expand Up @@ -13,7 +13,7 @@ build_requires q{Test::More}, '0.88';
build_requires q{FindBin}, 0;

requires q{B::Hooks::EndOfScope}, '0.07';
requires q{Stash::Manip}, '0.01';
requires q{Package::Stash}, '0.03';
requires q{Sub::Name}, '0.04';
requires q{Sub::Identify}, '0.04';

Expand Down
12 changes: 6 additions & 6 deletions lib/namespace/clean.pm
Expand Up @@ -11,7 +11,7 @@ use strict;

use vars qw( $VERSION $STORAGE_VAR $SCOPE_HOOK_KEY $SCOPE_EXPLICIT );
use B::Hooks::EndOfScope;
use Stash::Manip;
use Package::Stash;
use Sub::Identify qw(sub_fullname);
use Sub::Name qw(subname);

Expand Down Expand Up @@ -161,8 +161,8 @@ my $RemoveSubs = sub {

my $cleanee = shift;
my $store = shift;
my $cleanee_stash = Stash::Manip->new($cleanee);
my $deleted_stash = Stash::Manip->new("namespace::clean::deleted::$cleanee");
my $cleanee_stash = Package::Stash->new($cleanee);
my $deleted_stash = Package::Stash->new("namespace::clean::deleted::$cleanee");
SYMBOL:
for my $f (@_) {
my $variable = "&$f";
Expand Down Expand Up @@ -231,7 +231,7 @@ sub import {
# calling class, all current functions and our storage
my $functions = $pragma->get_functions($cleanee);
my $store = $pragma->get_class_store($cleanee);
my $stash = Stash::Manip->new($cleanee);
my $stash = Package::Stash->new($cleanee);

# except parameter can be array ref or single value
my %except = map {( $_ => 1 )} (
Expand Down Expand Up @@ -296,7 +296,7 @@ information about function names included and excluded from removal.

sub get_class_store {
my ($pragma, $class) = @_;
my $stash = Stash::Manip->new($class);
my $stash = Package::Stash->new($class);
return $stash->get_package_symbol("%$STORAGE_VAR");
}

Expand All @@ -311,7 +311,7 @@ reference to the symbol as value.
sub get_functions {
my ($pragma, $class) = @_;

my $stash = Stash::Manip->new($class);
my $stash = Package::Stash->new($class);
return {
map { $_ => $stash->get_package_symbol("&$_") }
$stash->list_all_package_symbols('CODE')
Expand Down

0 comments on commit 16d8eca

Please sign in to comment.