hello all and thanks for the help,so far. I have made sure that a query sequence is being provided. By running the debug statement suggested above I have found that I have undef max values. How can I get around this? Thank you very much everyone!

$VAR1 = [ { 'bar' => 'TATCCTCT', 'max' => undef }, { 'bar' => 'CTCTCTAT', 'max' => undef }, { 'bar' => 'AGCGTAGC', 'max' => undef }, { 'bar' => 'AGAGTAGA', 'max' => undef }, { 'max' => undef, 'bar' => 'CTAAGCCT' }, { 'bar' => 'CATGCCTA', 'max' => undef }, { 'bar' => 'TTCTGCCT', 'max' => undef }, { 'max' => undef, 'bar' => 'GCTCAGGA' }, { 'max' => undef, 'bar' => 'TCGCCTTA' }, { 'max' => undef, 'bar' => 'CCTCTCTG' }, { 'bar' => 'TAGATCGC', 'max' => undef }, { 'max' => undef, 'bar' => 'ACTGCATA' }, { 'bar' => 'GCGTAAGA', 'max' => undef }, { 'bar' => 'CTAGTACG', 'max' => undef }, { 'bar' => 'AAGGAGTA', 'max' => undef }, { 'max' => undef, 'bar' => 'GTAGAGAG' } ]; DEBUG: [TATCCTCT]=>[11] DEBUG: [CTCTCTAT]=>[10] DEBUG: [AGCGTAGC]=>[5] DEBUG: [AGAGTAGA]=>[12] DEBUG: [CTAAGCCT]=>[16] DEBUG: [CATGCCTA]=>[6] DEBUG: [TTCTGCCT]=>[3] DEBUG: [GCTCAGGA]=>[4] DEBUG: [TCGCCTTA]=>[1] DEBUG: [CCTCTCTG]=>[8] DEBUG: [TAGATCGC]=>[9] DEBUG: [ACTGCATA]=>[14] DEBUG: [GCGTAAGA]=>[13] DEBUG: [CTAGTACG]=>[2] DEBUG: [AAGGAGTA]=>[15] DEBUG: [GTAGAGAG]=>[7]

In reply to Re^2: Help with function, count matches and store in hash & retrieve sorted by Pathogenomix
in thread Help with function, count matches and store in hash & retrieve sorted by Pathogenomix

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.