Scanning your code I note that I cannot see a use docParser anywhere in concepts2.pl... this may simply be because you missed out that bit ?
You say that the problem is that "none of the printing is shown in the browser". If you had included a small sample input file I could have looked at this a bit more deeply...
...however, something apparently impossible is happening. All the output from the print statements in docParser.pm is getting lost. Whenever you come to a startling conclusion like that, step back from the problem. Look at it another way. Assume for a moment that your conclusion is wrong: ask yourself, why else would there be no output ? The foreach my $key (keys %seqhash) loop sends each captured sequence to the parser... what if there were no captured sequences ? OK, so that's impossible too -- because you're sure that piece of code works. BUT do not stop there: that is something you can verify very quickly by sticking a print statement or two before the foreach to show what the %seqhash contains...
Looking at the "Process File" loop: (a) you can look for a blank line with just $line =~ m/^\s*$/; and (b) you need to consider what happens to $sequence during this loop. (Are you sure this bit works ?)
I'm not sure why you are collecting the name and the sequence in a hash... If you do get two sequences with the same name, the second will replace the first -- this may be deliberate ? You won't get the sequences out in the same order they went in -- this may also be deliberate ?
In reply to Re: Passing a file from a form, processing, and then outputting as html
by gone2015
in thread Passing a file from a form, processing, and then outputting as html
by bobekdj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |