I am creating a webserver where I am using a tool called HMMer. When user uses this server they have the option to generate the output for the input either as tabular output or as text output.My problem is to show both output in the web page. I am doing the coding in Perl.

I have used the PERL coding like:






     if ( -z 'Data/testtblop' ) 
                      print "File is empty and has no alignment\n"; //Sometimes FIle may be empty also......
                  else
                  open( FILE, '< Data/testtblop.out' ) or die "Can't open $filename :$!";//File is tabular output
                //This html code is for tabulr output
                <html>
                    <body>
                        <p>
                            <pre> read(FILE1, $text,$filesize)   </pre>
                        </p>
                    </body>
                </html>              
                if ( -z 'Data/testop' )                          //File is simple text format
                    print "File is emptyand has no alignment\n";
                else
                    open( FILE1, '< Data/testop' ) or die "Can't open $filename :$!";
                my $filesize= -s "testop.out";
                //This html code is for tabulr output
                <html>
                    <body>
                        <p>
                            read(FILE1, $text,$filesize) 
                        </p>
                    </body>
                </html>Inline Code Example Here    
                    close FILE1;
                    close FILE2;







        Pl correct me if I am wrong.............

Pl help...............

What is format of file how data is placed

You have to user rows and columns with <table> <tr> <td> table tags

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.