Subject: | Documentation - @less should have two undefs |
In this example:
my @numbers = ( 1,2,3,4,undef,5,6,undef,7 );
my @less = grep { $_ < 5 } @numbers; # 1,2,3,4,undef
my @greater = grep { $_ > 4 } @numbers; # undef,5,6,undef,7
@less should be:
1,2,3,4,undef,undef