in reply to Re: line by line match on an array of strings
in thread line by line match on an array of strings
May not be the OP's intent???
printsdo me a
Update (after what I judge to have been too many minutes of puzzling over this)
Still not clear why "a" matched (it'll come to me yet), but the obvious cure (IMO) is to anchor the match, thus
if(grep/^$line$/, @typedefs){
In Section
Seekers of Perl Wisdom