From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
1234567891011121314151617181920212223 #!/usr/bin/perl -wuse strict;use warnings;use Test::More 'no_plan';{ package Stuff; use Test::More; use Method::Signatures; method echo($arg) { return $arg } my $method = method ($arg) { return $self->echo($arg) }; is( Stuff->$method("foo"), "foo" );}
#!/usr/bin/perl -w
use
strict;
warnings;
Test::More
'no_plan'
;
{
package
Stuff;
Test::More;
Method::Signatures;
method echo(
$arg
) {
return
}
my
$method
= method (
$self
->echo(
)
};
is( Stuff->
(
"foo"
),
);