Skip to content

Instantly share code, notes, and snippets.

@dgl
Created March 19, 2011 16:44
Show Gist options
  • Save dgl/877594 to your computer and use it in GitHub Desktop.
Save dgl/877594 to your computer and use it in GitHub Desktop.
package Aaaaaaaa::Test::Plugin;
use Aaaaaaaa::Test;
sub import {
my($class) = @_;
goto \&{Aaaaaaaa::Test->can("import")};
}
1;
use Aaaaaaaa::Test::Plugin;
package Aaaaaaaa::Test;
use Test::More ();
sub import {
local $_[0] = "Test::More";
goto \&{Test::More->can("import")};
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment