I was going to hack up a couple of examples doing it the traditional way, however, I decided to take a quick peek in CPAN. Looks like you might be interested in Array::PrintCols (alt. link). There's a pretty clear example in the module's documentation.

Just goes to show that there have been a lot of people using Perl over the years and that they've added just about everything you need to CPAN. Repeat after me: CPAN is your friend. :-)

Update (for the reply): Forgive me, but I don't find that a very convincing excuse (especially when we have some fine tutorials that show how to install modules properly--and clearly.) Taken to the extreme, it's like saying..."Well, because some people are still using Perl versions older than 5.005_03, I won't distribute any code using CGI.pm." Which would be completely absurd, of course. While I've ranted on the topic from a different angle, I think someone else said it more eloquently. The bottom line is the same. Someone else has already done the hard work. Why reinvent the wheel?

--f


In reply to Re: Category List by footpad
in thread Category List by Anonymous Monk

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.