From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
12345678910111213141516171819 #!/usr/bin/env perluse strict;use warnings;use 5.010;use lib 't/lib';use PerlX::MethodCallWithBlock;use Test::More;use Echo;use MyEnum;Echo->say { pass "bar" };Echo->say{pass};my $x = MyEnum->new(0..10);$x->each { pass "iteration $_"; };done_testing;
#!/usr/bin/env perl
use
strict;
warnings;
5.010;
lib
't/lib'
;
PerlX::MethodCallWithBlock;
Test::More;
Echo;
MyEnum;
Echo->
say
{ pass
"bar"
};
{pass};
my
$x
= MyEnum->new(0..10);
->
each
"iteration $_"
; };
done_testing;