Hello Monks!

I have a perl script, when I run it, I output it to a text file or a php page. When I view it from either the file or the php page, the return data is all part of 1 line, and I need it to list. I've tried new line and other forms just can't seem to get it. Any help would greatly be appreciated. Here is the out put. Jobs with start and end time. the "*" just means the job hasn't ran yet.
Job_A, 16:06:38 10/15/2008, 14:55:21 02/23/2009 Job_B, 17:39:16 03/23/ +2009, 17:47:44 03/23/2009 Job_C, ******** **********, ******** ****** +**** Job_D, ******** **********, ******** ********** Job_E, ******** +**********, ******** ********** Job_F, ******** **********, ******** +**********
I need it to look like this
Job_A Start Time End Time Job_B Start Time End Time Job_C Start Time End Time etc....
Here is the code
&DBEXEC("select job_name, last_start, last_end from job_status, job where job.joid = job_status.joid and job_name in ('Job_A', 'Job_B', 'Job_C', 'Job_D', 'Job_E', 'Job_F')"); while(@status = &dbnextrow($dbproc)){ $name = ($status[0]); $stime = &GETTIME($status[1]); $etime = &GETTIME($status[2]); print "$name, $stime, $etime\n";
What do I need to add or remove ?

In reply to Printing issue with an array by CG_man

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.