Is this a Perl question, or is it that you have never programmed before and start learning to program using Perl, so it's more like a general programming question? From the way you ask, I suppose the latter, but you should make this clear, because you can get better help if we know about your current level of knowledge.

For instance, Perl offers several ways to iterate over an array, so for a Perl-newbie, I would refer him or her to perlsyn, in particular the sections about looping (because people new to Perl usually don't know which part of the huge documentation contains what they are looking for]. However, if I know that you have never programmed before, this information won't help you, because you don't even know what "looping" means, and we would have to teach you basic skills first.

-- 
Ronald Fischer <ynnor@mm.st>

In reply to Re^4: Perl hex substraction by rovf
in thread Perl hex substraction by inkubus

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.