Thanks for the response wjw. I issue that I was having was, I was able to open the directory and get the files based on the "-" and ".txt", but I was unable to figure out how to open the ".txt" files and pull the information out to print the total amount of music the artists had in each file. Honestly, the class that I'm taking is through Oreilly School of Technology and the instructions on the assignments are really vague. So, I get to spend most of my time trying to figure out what it is they are wanting. We only have a couple of guys at work that deal with Perl and I'm a third that is trying to learn without formal training.

I appreciate you telling me about the debugger -d 'perlscript.pl'. I would not have been aware of that and I probably would have found out about it much later when I really needed yesterday(If you know what I mean). I figured that I was setting the $values of the $hash{$keys} properly and I was also told that you could add as many keys to a hash as you wanted. Is that true?

Thanks, Brandon


In reply to Re^2: I need help with opening a directory and reading files in that directory. by brawal128
in thread I need help with opening a directory and reading files in that directory. by brawal128

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.