Class-Implant
view release on metacpan or search on metacpan
lib/Class/Implant.pm view on Meta::CPAN
use 5.008008;
use strict;
no strict "refs";
use warnings;
use Class::Inspector;
our $VERSION = '0.01';
sub import {
*{(caller)[0] . "::implant"} = \&implant;
}
sub implant (@) {
my $option = ( ref($_[-1]) eq "HASH" ? pop(@_) : undef );
my @class = @_;
my $target = caller;
if (defined($option)) {
$target = $option->{into} if defined($option->{into});
( run in 0.600 second using v1.01-cache-2.11-cpan-a3c8064c92c )