Thanks Grandfather! It works nicely. I am doing some testing on it right now.

There's a point in the directory (where I go higher up in directory) where I see this messageBad index while coercing array into hash

What's a good way to handle that message?

Output:

$ ./tst-loopthrough2.pl --dir /work/eng Bad index while coercing array into hash at ./tst-loopthrough2.pl line + 101. $ ./tst-loopthrough2.pl --dir /work/eng/feeds Directory: /work/eng/feeds Directory: /work/eng/feeds/customer_care $ ./tst-loopthrough2.pl --dir /work/eng/feeds/customer_care Directory: /work/eng/feeds/customer_care Directory: /work/eng/feeds/customer_care/abc Directory: /work/eng/feeds/customer_care/def Directory: /work/eng/feeds/customer_care/test $ ./tst-loopthrough2.pl --dir /work/eng/feeds/customer_care/test Filename: /work/eng/feeds/customer_care/test/q_data_20111023.dat Size: 379085 Directory: /work/eng/feeds/customer_care/test

In reply to Re^4: Setting up conditional check for printing out keys from array/hash ref by JaeDre619
in thread Setting up conditional check for printing out keys from array/hash ref 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.