We like to see strictures (use strict; use warnings;), but it looks like you added them as boiler plate to make us happy. As Marshall hints you can not possibly have run the code as presented. In fact even with strictures removed there are still many syntax errors that prevent the code from running. You have presented us with a steaming pile of dog turds so you haven't received very much help. As a first step you need to present code that actually runs and for very strong preference is self contained (see I know what I mean. Why don't you? for how you might do that).

At this stage tools such as BioPerl are likely to be a distraction until you get some basic Perl squared away. We can help with your Perl understanding given a sound starting point (so that we can understand where you are having trouble). Fewer of us can help with the biological component of your problem and none of us should do your homework for you.

Bottom line: you need to get a stand alone (no external files) test version of your code going at least enough that you can come back to us with your Perl coding problems.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

In reply to Re: Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please? by GrandFather
in thread Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please? by cosmin

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.