in reply to select elements in a list

split each line on ; and test if the second element in the list is 3 spaces:
my @interesting = grep { (split /;/)[1] ne ' ' } <DATA>; print @interesting; __DATA__ AAD; ;CCR;365 TEC;UTF;TDE;450 TRE; ;FTE;164 TEC;URT;TDE;687 ERT; ;ETR;567 TEC;UGC;TDE;687

Output:

TEC;UTF;TDE;450 TEC;URT;TDE;687 TEC;UGC;TDE;687

Not nearly as much fun as your previous question!

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.