The first problem is commenting out the warnings invocation line. There maybe interesting cautionary remarks that you're removing from consideration by doing so.

I did not see any problem with my original input files. I would very appreciate if you could locate the problem.
The second problem in here is that we don't have the input files, this way you have removed a valuable insight into the possible sources of the problem, esp because you've mentioned that the code works fine for the sample files but not for the input files. If you can extract that portion of the input files that can reproduce this problem I am sure that there can be something that one of the Monks in here can provide.

I work with huge biological data files myself and I get stuck aplenty like when I extend the code from my test sample case to application on all entries for that file and just as aquarium mentioned, there may lay some unscrupulous elements that couldn't be detected in the original files during your first pass on them and can be what is causing this problem, sometimes something as small as an empty space in the wrong place can just break apart your entire program and that you needed to account

Examine your hashes by Data::Dumper to see if they contain what you expect them to in both cases for your test files and original files, read, How do I post a question effectively? and Perl and Bioinformatics for tips on how to ask questions with respect to biological data.


In reply to Re: input data got lost in foreach loop?! by biohisham
in thread input data got lost in foreach loop?! by FluffyBunny

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.