|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^3: grep function does not recognize stringby choroba (Prior) |
| on May 07, 2012 at 12:41 UTC ( #969253=note: print w/ replies, xml ) | Need Help?? |
|
Use <readmore> tags for long portions of code or data. The reason is that you do not anchor your regex with ^, but you test the result of grep to be == 1. But for 4285, the result is == 2, because 4285 is contained in both 4285 and 24285.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||