Hi List ,
I have a directory that I want to read . Lets say the name of the directory
is my scripts (Windows platform ) . In this directory is text files . What I
want to do is read the directory and extract 2 lines out of each text file .
So far I'm able to create an Array but I'm not sure how
#@files contains filenames, let's say with paths prepended
for $name (@files) {
if $name =~ m/.txt$/ {
open FH, "< $name" or die $!;
do something...
}
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Chris Federico wrote:
> Hi List ,
>
>
> I have a directory that I want to read . Lets say the name of the
> directory
> is my scripts (Windows platform ) . In this directory is text files . What
> I want to do is read the directory and extract 2 lines out of each text
> file . So far I'm able
Chris Federico wrote:
>
> Hi List ,
Hello,
> I have a directory that I want to read . Lets say the name of the directory
> is my scripts (Windows platform ) . In this directory is text files . What I
> want to do is read the directory and extract 2 lines out of each text file .
> So far I'm ab