Hello , I am new to perl and I wrote a code that gives me the array of my data which has details like this :
Name-stage-type
each data has two single Name, many stages and 2 types for every stage , i.e new and old. Old and New has either true or false value as output which I am getting from some other part of the program,
Example: tony-skill-old tony-skill-new tony-skill1-old tony-skill1-new martin-skill-old martin-skill-new
I have also coded the program to fill the data in a HTML file , but I am it's not working according to my requirement. Let say I want to fill the data like this :
<!DOCTYPE html> <html> <body> <table style="width:300px"> <tr> <td>Name</td> <td>Stage</td> <td>Old</td> <td>New</td> </tr> <tr> <td>tony</td> <td>skill</td> <td>True</td> <td>True</td> </tr> <tr> <td></td> <td>skill1</td> <td>False</td> <td>False</td> </tr> <tr> <td>Martin</td> <td>skill</td> <td>False</td> <td>True</td> </tr> </table> </body> </html> <code> You can check this code here : <code> http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table
As you will see thru from above code , The Name is printed once then the Stages and then the types for each stage , in my program due to two types the loop is running twice and printing the data in two different lines for a single stage . I just need idea on how to print project name once then all the stages and their type status , every stage should be in a single line . Sorry for the bad explaination

In reply to Filling Table in a HTML file using perl by farha89

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.