use Carp 'confess';
use Package::Stash;
-our $VERSION = '1.02';
+our $VERSION = '1.09';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
$self->_package_stash->get_package_symbol(@_);
}
+sub get_or_add_package_symbol {
+ my $self = shift;
+ $self->_package_stash->get_or_add_package_symbol(@_);
+}
+
sub remove_package_symbol {
my $self = shift;
$self->_package_stash->remove_package_symbol(@_);
or undef if it does not exist. The C<$variable_name> must contain a
leading sigil.
+=item B<< $metapackage->get_or_add_package_symbol($variable_name) >>
+
+Given a variable name, this method returns the variable as a reference.
+If it does not exist, a default value will be generated if possible. The
+C<$variable_name> must contain a leading sigil.
+
=item B<< $metapackage->has_package_symbol($variable_name) >>
Returns true if there is a package variable defined for