I didn't realise that I had 'modified' the question, so please don't read too much into that! Please read 'in' as 'of' in the line you quote. It would be irrelevant of me to show what code I had already produced because it would have no bearing on what I am trying to achieve, reading of the file and printing of the results means nothing unless you can get the code to do what you want it to. Yes I'm a novice with regards to Perl, but we all cannot know everything about everything, we all have to learn, which is what I was after, some help in what area to look at to achieve the results. Incidently I was told if I can do this exercise I'll have a good foundation to build on. You may disagree with that but then I don't do this for a living!

In reply to Re^4: How do I gather and output info about a file's contents? by aureum
in thread How do I gather and output info about a file's contents? by aureum

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.