new#

A stash object for the package named $package, or for the anonymous stash \%stash.

Synopsis#

my $s = Package::Stash::XS->new('Foo::Bar');
my $a = Package::Stash::XS->new({});          # an anonymous stash

Edge cases#

  • A name that is not a module name dies «NAME is not a module name».

  • Anything but a string or a hash ref dies «Package::Stash->new must be passed the name of the package to access».