Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: line by line match on an array of stringsby ww (Archbishop) |
on Jan 09, 2008 at 14:13 UTC ( [id://661352]=note: print w/replies, xml ) | Need Help?? |
May not be the OP's intent??? prints
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
|
|