in reply to Re: Having a problem with my code!
in thread Having a problem with my code!

Thanks for that info, I somewhat suspected that already, but my main point was just to get it to work first. I'm pretty sure they're not responsible for the error, because it happened after the program is finished with the parser.

Replies are listed 'Best First'.
Re^3: Having a problem with my code!
by Anonymous Monk on Dec 22, 2010 at 20:16 UTC
    Thanks for that info, I somewhat suspected that already, but my main point was just to get it to work first. I'm pretty sure they're not responsible for the error, because it happened after the program is finished with the parser.

    I'm not sure about that. For example, I have no idea which variable this is

    %data->{$_} = $df; #store constructed data set
    $data or %data? One is local, one is global.

    I also can't get your program to produce any output, much less something with "star" or "mature" which would demonstrate your bug.

    I've made a simple modification below to avoid using Switch when possible (no need to use Switch if perl comes with given/when/default)

    I suggest you take this modification, do some more cleanup, reduce the line count (html/code, divide and conquer) and ask again :)

      I adjusted the code to use HTML::TableReader which eliminated the part of my code that used switching and made it a little more tolerable to look at.

      Whats weird is I'm still getting "Duplicate detected messages thrown up when on items with no duplicates, and weirdly, it prints one iteration too late, but still manages to print its name...;
      example: (part of output)

      hsa-miR-382 shortens to hsa-miR-382
      hsa-miR-99b* shortens to hsa-miR-99b
      Duplicate Detected! hsa-miR-382
      hsa-miR-196b shortens to hsa-miR-196b