"be consistent" | |
PerlMonks |
Re^3: using grep to search an arrayby John M. Dlugosz (Monsignor) |
on May 23, 2011 at 20:53 UTC ( [id://906366]=note: print w/replies, xml ) | Need Help?? |
OK, so it is supposed to be a prefix. That means the \n at the end of $testit is getting in the way of letting it match. Use chomp inside the loop.
In Section
Seekers of Perl Wisdom
|
|