in reply to Basic list manipulation, and a bit of map() confusion...
my @b = grep { s/x//g; $_ ne ''; } @a; [download]