I'm about to go to sleep so I won't be able to run some of your tests until the morning

taxonomy.tab is 800kb, the smaller $tempFile is 250,000kb, the larger is 10gb. When I use a 23,000kb $tempFile, the program completes sucessfully on both a Mac and PC

The problem does occur when $tempFile gets too large. $tempfile is format "$annotativeInformation\t$aminoacidSequence\t$taxonomyCode\n". The following is an example of one line of $tempFile. >sp|P48255|ABCX_CYAPA Probable ATP-dependent transporter ycf16 OS=Cyanophora paradoxa GN=ycf16 PE=3 SV=1 MSTEKTKILEVKNLKAQVDGTEILKGVNLTINSGEIHAIMGPNGSGKSTFSKILAGHPAYQVTGGEILFKNKNLLELEPEERARAGVFLAFQYPIEIAGVSNIDFLRLAYNNRRKEEGLTELDPLTFYSIVKEKLNVVKMDPHFLNRNVNEGFSGGEKKRNEILQMALLNPSLAILDETDSGLDIDALRIVAEGVNQLSNKENSIILITHYQRLLDYIVPDYIHVMQNGRILKTGGAELAKELEIKGYDWLNELEMVKK CYAPA

What I mean by the script failing is that, the hash %taxR is messed up, as shown in the 3 examples of output (2 good, 1 bad) which causes the program to not forward any lines of $tempFile to the rest of the program. There is no error. For the program to progress, some of the hash values must equal 1

$filter is true if there is a value for $taxR{$curLineΐ]} which is built near the top

checkSeq(@curLine) is the rest of my program which works no matter where I test it, if I set $filter to be equal to 1, the program doesn't work because $filter is never set to 1 because the hash seems to break when $tempFile is too large

I use strict but I haven't used warning, I'll have to check that


In reply to Re^2: Breaks on Mac but not Windows - huge IO by vivomancer
in thread Breaks on Mac but not Windows or Linux - huge IO by vivomancer

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.