jw, Thanks for the suggestion, I'll put it in and give it a shot see how it works. It's pretty much guaranteed to be "better" than what I've got, in terms of concise-ness and "correctness" or whatever. Thanks for taking the time to help me out, it's really appreciated!

~Jack

Update ... I put it in and ran, and it ran beautifully. One question, if you can give me a pointer. In filling the @FN array, you use the map command and the $_ character, I think I understand that alright, but why did you have to put the first chunk of numbers in single quotes (i.e. '00 .. '18'), but not the rest of them? Is either convention acceptable or is there something specific here?

Also, in the for loop, is it automatic convention that if an array with a scalar name before it (in this case calling $filename in the loop, with the looping parameter being @FN) is accessed, the length of the loop is the length of the array, and the scalar is automatically updated to be each member of the array, starting at 0 and going to the last array point? Does that make sense or is it too wordy?

Just trying to understand exactly how in the for loop, the code knows to use each name in the array. Thanks again!

~Jack


In reply to Re^2: Open in for loop/array structure by igotlongestname
in thread Open in for loop/array structure by igotlongestname

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.