Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more
123456789101112131415161718192021 #!perluse strict;use warnings FATAL => 'all';# Importing always affects the currently compiling scope.package Foo;use Test::More 'no_plan';BEGIN { package Bar; require Function::Parameters; Function::Parameters->import;}is( Foo->foo(42), 42 );method foo ($arg) { return $arg;}
#!perl
use
strict;
warnings
FATAL
=>
'all'
;
# Importing always affects the currently compiling scope.
package
Foo;
Test::More
'no_plan'
BEGIN {
Bar;
require
Function::Parameters;
Function::Parameters->
import
}
is( Foo->foo(42), 42 );
method foo (
$arg
) {
return