note
InfiniteSilence
<p>
For starters that regex you are using fails. You need two things a) you <i>must</i> learn how to use the Perl debugger and to step through your code. Writing reams of Perl code without the ability to deduce precisely where things are breaking is the path to misery and b) test your regexes:
<code>
DB<5> p $_
15.254.32.120 10.2.9.2 5 504
DB<6> if (m/^[\.d\s]+/g){print 1}
DB<7> if (m/^[\.d\s\t]+/g){print 1}
1
</code>
The line you are looking for has nothing but numbers, spaces, tabs, and periods. My test checks only for that and succeeds. Yours is testing is trying to eliminate lines. That, in itself, is not the reason why it is failing but from the sheer number of alternates you added to the regex it is sloppy. Use regexes to zero in on what you want in a file and less on what you are trying to ignore.
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-45622">
<P><I>Celebrate Intellectual Diversity</I>
</div></div>
950855
950855