The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more
12345678910111213141516 #!perluse strict;use warnings FATAL => 'all';use Test::More;use Function::Parameters;fun Foo::foo ($x, $y) { $x + $y;}ok(!main->can('foo'));ok(Foo->can('foo'));is(Foo::foo(1, 2), 3);done_testing;
#!perl
use
strict;
warnings
FATAL
=>
'all'
;
Test::More;
Function::Parameters;
fun Foo::foo (
$x
,
$y
) {
+
}
ok(!main->can(
'foo'
));
ok(Foo->can(
is(Foo::foo(1, 2), 3);
done_testing;