Help for this page

Select Code to Download


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