☰
Debian Codegraph
@
1.33-2
/
/
t
/
for.t
☽
☼
t/for.t
code
plain
raw
symbols
SCIP
Artistic
or
GPL-1+
2009, 2010, 2011, Scott Walters <
[email protected]
>
debian/copyright
1
use
Test::More
qw(no_plan);
2
use
strict
;
3
use
warnings
;
4
5
use
autobox::Core
;
6
7
my
@array
= qw(1 2 3);
8
9
my
@added
;
10
@array
->
for
( sub { my (
$i
,
$v
,
$arr
) =
@_
;
push
@added
,
$i
+
$v
+ @
$arr
} );
11
12
is_deeply [
@added
], [ qw(4 6 8) ];