0

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...............

2
Contributors
1
Reply
2
Views
3 Years
Discussion Span
Last Post by urtrivedi
0

What is format of file how data is placed

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.