blob: bc9ede5dafcd2d0cd6484a8c1bdedadaee487f4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use lib 't/fun/lib';
use Fun;
{
my $x = 10;
fun bar ($y) {
$x * $y
}
}
is(bar(3), 30);
done_testing;
|