MongoDBx-Tiny
view release on metacpan or search on metacpan
lib/MongoDBx/Tiny.pm view on Meta::CPAN
use Params::Validate ();
use Scalar::Util qw(blessed);
sub import {
my $caller = (caller(0))[0];
{
no strict 'refs';
push @{"${caller}::ISA"}, __PACKAGE__;
}
strict->import;
warnings->import;
__PACKAGE__->export_to_level(1, @_);
}
require Exporter;
use base qw/Exporter/;
our @EXPORT = qw/CONNECT_INFO DATABASE_NAME LOAD_PLUGIN/;
our $_CONNECT_INFO;
our $_DATABASE_NAME;
lib/MongoDBx/Tiny/Document.pm view on Meta::CPAN
'""' => \&id,
'fallback' => 1;
sub import {
my $class = shift || __PACKAGE__;
my $caller = (caller(0))[0];
{
no strict 'refs';
push @{"${caller}::ISA"}, $class;
}
strict->import;
warnings->import;
__PACKAGE__->export_to_level(1, @_);
if (__PACKAGE__ ne $class) {
$class->export_to_level(1,@_);
}
}
=head1 EXPORT
A list of functions that can be exported.
( run in 0.412 second using v1.01-cache-2.11-cpan-299005ec8e3 )