The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
1234567891011121314151617 #!/usr/bin/perl -w# It should be possible to import into another package.package Foo;use Test::More 'no_plan';{ package Bar; use Method::Signatures { into => 'Foo' };}is( Foo->foo(42), 42 );method foo ($arg) { return $arg;}
#!/usr/bin/perl -w
# It should be possible to import into another package.
package
Foo;
use
Test::More
'no_plan'
;
{
Bar;
Method::Signatures {
into
=>
'Foo'
};
}
is( Foo->foo(42), 42 );
method foo (
$arg
) {
return