- or download this
# What I did
my @foo;
...
# What I expected
@foo.elems == 1
# But I got @foo.elems == 0
- or download this
ok(@foo.elems == 1, "\@foo has 1 element");
- or download this
is(@foo.elems, 1, "\@foo has 1 element");
- or download this
#!/usr/bin/pugs
...
push @foo, [];
is(@foo.elems, 1, "\@foo has 1 element");