Help ! Newbie here :)

2002-09-18 Thread Federico, Chris
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

RE: Help ! Newbie here :)

2002-09-18 Thread nkuipers
#@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]

Re: Help ! Newbie here :)

2002-09-18 Thread david
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

Re: Help ! Newbie here :)

2002-09-18 Thread John W. Krahn
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