Fletch is right: there's really no way to diagnose the problem if you don't indicate what sorts of lines are matching when they shouldn't. Maybe if you do that, you'll see the problem yourself.
As a wild guess, given that your regex comes out looking like this:
/00000|00001|00002|.../
and given that your logic says "don't print a line if it matches that regex", the first thing that comes to mind is that your 52 lines might include lines like this:
...100000.... any five zeros in a row will match
...4850001... any four zeros followed by 1 will match.
You might think that a number like "100000" shouldn't match, but it will, because the strings in the regex are not anchored in any way. If this is the problem, the solution is easy:
my $finds_re = '\b' . join( '|', map { quotemeta } @finds ) . '\b';
(or something like that).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.