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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |