Though my familiarity with homework assignments posted here helps to fill me in on what your code does, it might be a good idea to tell us just for the record so that we will know what your assignment is, exactly. You wouldn't want us to guess at the specification and get it wrong so you'll get a lower grade.

Since this is almost certanly homework, and it would be highly unethical for you to turn in verbatum answers given to you by other PerlMonks, perhaps we should ask you, in what ways do you think it can be improved? And more importantly, is there a particular issue that we can help you to work out better?

I'm all for providing specific help to specific questions, even if it is homework. But you've got to ask first.


Dave


In reply to Re: Display array as ranges? by davido
in thread Display array as ranges? by xipho

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.