Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: PERL-CGI on shared unix server

by rahu_6697 (Novice)
on Jun 22, 2018 at 06:27 UTC ( [id://1217161]=note: print w/replies, xml ) Need Help??


in reply to Re: PERL-CGI on shared unix server
in thread PERL-CGI on shared unix server

Presently I'm printing all results data to an output.txt file but I also want to arrange all data in tabular format so as to open it on web-browser.Below is my PERL code from which I am printing all data in output file.

printf OUT "%-15s %-13s %-16s %-13s\n",$fname,$drctotal,$metaltotal,$b +asetotal); for ($i=0;$i<5;$i++){ printf OUT "%-30s %-10s %-30s %-10s\n",$METAL[$i],$METALVAL[$i],$BASE[ +$i],$BASEVAL[$i]; }
In HTML code will be like this:
<table> <tr> <td>$fname</td> <td>$drctotal</td> <td>$metaltotal</td> <td>$basetotal</td> <td>$METAL[0] $METALVAL[0] </br> $METAL[1] $METALVAL[1] </br> $METAL[2] $METALVAL[2] </br> $METAL[3] $METALVAL[3] </br> $METAL[4] $METALVAL[4] </br> </td> <td>$BASE[0] $BASEVAL[0] </br> $BASE[1] $BASEVAL[1] </br> $BASE[2] $BASEVAL[2] </br> $BASE[3] $BASEVAL[3] </br> $BASE[4] $BASEVAL[4] </br> </td> </tr> </table>

I want to put this HTML in my PERL script such that on executing script, output in the form of table get pops up on browser. I am new with PERL and any of the package can't be installed on my shared server linux. So please help me what would be the exact script to get the required output on browser.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217161]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found