I wouldn't need another regex inside the while loop. At this point, the regex you helped me with list all the files I need to read in at the same time extracting those particular keys I wanted. Now, since I'm already in I wouldn't need another regex. I just need to open the filenames and get the values. I hope I am making sense.

Would I do this within the while loop of the of the if (DEBUG) section?

UPDATE:

Nevermind. Thanks for your help! This does what I need it to do. I haven't really used DEBUG before. Once I changed it to 1 it does what I need to do. This is a cool script. I can always use that debug technique. Thanks for showing me the ways.


In reply to Re^4: Help constructing proper regex to extract values from filenames and concurrently opening those same files to access records by JaeDre619
in thread Help constructing proper regex to extract values from filenames and concurrently opening those same files to access records by JaeDre619

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.