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
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 = $
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
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";
>$
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
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
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