3 use warnings FATAL => 'all';
5 use Test::More tests => 3; # last test to print
6 use Function::Parameters qw(:strict);
16 my $r = eval $evalcode;
23 my $foo = foo->new({});
24 is ($foo->example (), 1, 'First method declared');
25 is ($foo->example2(), 2, 'Second method declared (after injected semicolon)');
31 use Function::Parameters qw(:strict);
32 method new($class: $init) { bless $init, $class }
33 method example { 1 } # look Ma, no semicolon!