|Subject:||import sub makes for difficulty in including MooseX::Storage in export modules|
In particular, the $pkg variable in MooseX::Storage's import sub's `($pkg->can('meta')) || confess` line is set to the caller, which means an export module must be a Moose class itself or trigger that line's fatal second disjunct. One can write a dummy meta sub in the export module, but MooseX::Storage's import sub also calls `$pkg->meta->add_method`. The ultimate solution ended up being to call meta->add_method directly from within the export module, so that that "$pkg" could be set to the caller of the export module. A simple solution would be to merely remove the can('meta') test, but it would be extra swell if MooseX::Storage's import functionality came from Moose::Exporter!