in reply to Re^2: undefined elements in arrayin thread undefined elements in array
I think you meant grep, not map:
0:14 >perl -wE "@a = (1,2,3,undef,5); say scalar @a; @b = map(defined
+, @a); print join(',', @b);"
0:14 >perl -wE "@a = (1,2,3,undef,5); say scalar @a; @b = grep(define
+d, @a); print join(',', @b);"
Hope that helps,
Went to join the gridlock to see it
Held an eclipse party
Watched a live feed
I cn"t see tge kwubosd to amswr thus
I tried to see it, but 8000 miles of rock got in the way
Wanted to see it, but they wouldn't reschedule it
Read the book instead
Results (291 votes). Check out past polls.