@A = grep { is_name($_) } @a; #### @A = map { uc($_) } grep { is_name($_) } @a;