I am getting the following results:
Game Name Star Wars Online Players 67000 Avg Time 4 Hrs
What i would like is:
Game Name Online Players Avg Time Star Wars 67000 4 Hrs
Please Help!! The bad code i have is:
while ( ($timestamp, $report_type, $game_name, $data_name, $data_value +) = $ora_sth->fetchrow_array) { if (($data_name eq 'min') || ($data_name eq 'time')) { +$data_value = $data_value * 1440} { %myvar =( $report_type, $data_name, $data_value, ); $dname{$report_type} = $data_name; $dvalue{$report_type} = $data_value + $dvalue{$report_ +type}; } } print $query->Tr( $query->th(["Report Name"]) ); foreach $var (keys %dvalue) { if ($var =~ m/avg_per_comp_game/) {$dvalue{$var} = $dv +alue{$var} / $counter} if ($var !~ m/unique_user/ and $counter ne 1) { print $query->Tr($query->td([$var])); print $query->Tr($query->td(["$dvalue{$var} $dname{$var}"])); } } $ora_dbh->disconnect; print $query->end_table; print "\n"; print $query->end_html; print "\n";
TIA SLWARDO -"Playing games at work is unacceptable. However, testing them is highly encouraged."

Edit - 2001-26-06 Masem - Changed title from "print output"


In reply to Help with CGI.pm's Table commands by swarddb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.