Hi Meenac,

The purpose of the opening/closing <code> tag pairs is to format your code in a readable format. You only need to surround your code with a single set of opening/closing <code> tags. For example, in the code you posted, notice how you're including several code tags, but you've forgotten the closing code tags and as such you're missing the formatting. If you surround all your code with a single set of tags, it will look like this:

$LOGDIR = 'C:\temp\logs'; open(INPUT, "$LOGDIR\\sec-ghost01-12-09-2004-21-43.csv") || die ("cann +ot open log file\n"); foreach my $line (<INPUT>) { chomp($line); process each line }

Check out these resources for more information on formatting your posts:

Those links will help you get the answers you seek, and make life a whole lot easier for the people who are helping you. :)

/Larry

Update: davido cleaned up the errant code tags, so you won't be able to see them in your original post. However, you should still check out those links for future posts. :)


In reply to Re: Opening multiple files for input by larryp
in thread Opening multiple files for input by meenac

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.