The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!perl
use strict;
use warnings FATAL => 'all';
use 5.10.0;
fun bar ($y) {
state $x = 10;
$x * $y;
}
is(bar(3), 30);
done_testing;