An example of the file is something like this:
1269 /:tremblnew|AAL98468|AAL98468 344 873 6e-94 534 76 +7 166/177 93% 172/177 96% 767 533 3 590 766 1269 /:sptrembl|Q9F445|Q9F445 331 840 5e-90 534 72 +2 162/177 91% 169/177 94% 722 533 3 545 721 1269 /:tremblnew|AAK99986|AAK99986 143 357 2e-33 534 21 +3 72/165 43% 108/165 64% 213 533 39 46 209
where the reg ex's would be something like;
if (defined(($array[1] =~ m{/:sptrembl\|\w+\|\w+}) || ($array[1] =~ m{ +/:tre mblnew\|\w+\|\w+})) && ($array[8] > 95))
thanks, i appreciate your help!

In reply to Re: Re: Re: Re: struggling with sub-routines by Anonymous Monk
in thread struggling with sub-routines by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.