That seems like an inadequate sample to give us a complete picture of what needs to be done.

Also, since you tried a lot, it would be useful to us for you to demonstrate a Short, Self-Contained, Correct Example of the code you tried. 30 lines or less ought to be adequate for a complete example.

With that information we will gain a better sense of what you are after, as well as of where you are stuck, and can assist you in getting over the hurdle.

You received similar advice previously; to provide samples of the code you are working on. It's the right thing to do. It helps us to be more effective in helping you, and avoids our wasting time presenting tips that you already have learned. Without posting code we might also begin to conclude that you prefer to have us do your homework for you.


Dave


In reply to Re: Help Me to Sort out from this by davido
in thread Help Me to Sort out from this by Nansh

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.