projects
/
p5sagit/Function-Parameters.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6a05d24ab4892b5389b519893cb015c7e93943d1
[p5sagit/Function-Parameters.git]
/
t
/
foreign
/
Fun
/
state.t
1
#!perl
2
3
use strict;
4
use warnings FATAL => 'all';
5
use Test::More;
6
7
use 5.10.0;
8
use Function::Parameters;
9
10
fun bar ($y) {
11
state $x = 10;
12
$x * $y;
13
}
14
15
is(bar(3), 30);
16
17
done_testing;