1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
package List::Objects::WithUtils::Hash;
$List::Objects::WithUtils::Hash::VERSION = '2.028003';
use strictures 2;
require Role::Tiny;
Role::Tiny->apply_roles_to_package( __PACKAGE__,
'List::Objects::WithUtils::Role::Hash'
);
use Exporter ();
our @EXPORT = 'hash';
sub import {
my $pkg = caller;
{ no strict 'refs';
${"${pkg}::a"} = ${"${pkg}::a"}; ${"${pkg}::b"} = ${"${pkg}::b"};
}
goto &Exporter::import
}
sub hash { __PACKAGE__->new(@_) }
print
qq[<mauke> die "bad meth"\n<nperez> die "better call saul"\n]
unless caller; 1;
=pod
=head1 NAME
List::Objects::WithUtils::Hash - Hash-type objects WithUtils
=head1 SYNOPSIS
use List::Objects::WithUtils 'hash';
my $hash = hash( foo => 'bar' );
=head1 DESCRIPTION
This class is the basic concrete implementation of
L<List::Objects::WithUtils::Role::Hash>. Methods are documented there.
=head2 hash
Creates a new hash object.
=head1 AUTHOR
Jon Portnoy <avenj@cobaltirc.org>
Derived from L<Data::Perl> by Matt Phillips (CPAN: MATTP) et al
Licensed under the same terms as Perl
=cut
|