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 filenames to open > > > Folks, > > looking for a simple example of putting a set of filenames > into an array > and then opening each of them for parsing. > > I was think of > > > @files = ( "file1", "file2", "file3" ); > > foreach $file (@files) { > open FN, "< $file"; > do something here > close > } > > > am I correct? or isthere a better way todo this? > > -Ron > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]