RE: array of filenames to open

2002-01-09 Thread Yacketta, Ronald
Cc: Beginners (E-mail) > Subject: RE: array of filenames to open > > > On Jan 9, Yacketta, Ronald said: > > >I see that :) but not sure how to pull just the first line > from the file > >WITHOUT closing it and skipping to the next... > > Oh. Well, what are you

RE: array of filenames to open

2002-01-09 Thread Jeff 'japhy' Pinyan
On Jan 9, Yacketta, Ronald said: >I see that :) but not sure how to pull just the first line from the file >WITHOUT closing it and skipping to the next... Oh. Well, what are you trying to do? Change the first line of a set of files? >local @ARGV = @sleepystart; >while (<>) { > $line = $

RE: array of filenames to open

2002-01-09 Thread Yacketta, Ronald
Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 09, 2002 12:07 > To: Yacketta, Ronald > Cc: Beginners (E-mail) > Subject: RE: array of filenames to open > > > On Jan 9, Yacketta, Ronald said: > > >is their another trick to forgo the

RE: array of filenames to open

2002-01-09 Thread Jeff 'japhy' Pinyan
On Jan 9, Yacketta, Ronald said: >is their another trick to forgo the 4 lines above the "local @ARGV" ?? The ARGV trick is meant to AVOID the for loop. >foreach $file (@sleepystart) { >open FILE, "$file"; >$

RE: array of filenames to open

2002-01-09 Thread Yacketta, Ronald
print; } } Regards, Ron > -Original Message- > From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 09, 2002 11:50 > To: Yacketta, Ronald > Cc: Beginners (E-mail) > Su

Re: array of filenames to open

2002-01-09 Thread Jeff 'japhy' Pinyan
On Jan 9, Yacketta, Ronald said: >looking for a simple example of putting a set of filenames into an array >and then opening each of them for parsing. > >@files = ( "file1", "file2", "file3" ); > >foreach $file (@files) { > open FN, "< $file"; > do something here > close >} Thi

RE: array of filenames to open

2002-01-09 Thread Yacketta, Ronald
actualy it should be an array of variables that contain filenames @files = ( \$file1, \$file2, $file3 ); is that correct? > -Original Message- > From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 09, 2002 11:44 > To: Beginners (E-mail) > Subject: array of filen