in reply to Re^2: using grep to search an array
in thread using grep to search an array
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: using grep to search an array
by alicatserver (Initiate) on May 23, 2011 at 21:11 UTC | |
by alicatserver (Initiate) on Jun 06, 2011 at 21:54 UTC |
In Section
Seekers of Perl Wisdom