The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
1234567891011121314151617181920 #!perlpackage Foo;use strict;use warnings FATAL => 'all';use Function::Parameters qw(:strict);use Test::More 'no_plan';# The problem goes away inside an eval STRING.method foo( $arg){ return $arg;}is $@, '';is( Foo->foo(42), 42 );
#!perl
package
Foo;
use
strict;
warnings
FATAL
=>
'all'
;
Function::Parameters
qw(:strict)
Test::More
'no_plan'
# The problem goes away inside an eval STRING.
method foo(
$arg
)
{
return
}
is $@,
''
is( Foo->foo(42), 42 );