use Carp 'confess';
use Scalar::Util 'blessed';
-our $VERSION = '0.89';
+our $VERSION = '1.09';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
sub version {
my $self = shift;
- ${$self->get_package_symbol({ sigil => '$', type => 'SCALAR', name => 'VERSION' })};
+ ${$self->get_or_add_package_symbol({ sigil => '$', type => 'SCALAR', name => 'VERSION' })};
}
sub authority {
my $self = shift;
- ${$self->get_package_symbol({ sigil => '$', type => 'SCALAR', name => 'AUTHORITY' })};
+ ${$self->get_or_add_package_symbol({ sigil => '$', type => 'SCALAR', name => 'AUTHORITY' })};
}
sub identifier {
|| confess "creation of $package_name failed: invalid package name";
no strict 'refs';
- scalar %{$package_name . '::'}; # touch the stash
- ${$package_name . '::VERSION'} = $version if defined $version;
- ${$package_name . '::AUTHORITY'} = $authority if defined $authority;
+ scalar %{ $package_name . '::' }; # touch the stash
+ ${ $package_name . '::VERSION' } = $version if defined $version;
+ ${ $package_name . '::AUTHORITY' } = $authority if defined $authority;
return;
}
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2009 by Infinity Interactive, Inc.
+Copyright 2006-2010 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>