# loop through the file list assigning each name to $filename foreach my $filename (@files) { # open the file named $filename for overwrite. open FILE, ">$filename" or die "Could not open $filename: $!\n"; # print data to the file print FILE "data"; # close the file close FILE; } ----- Original Message ----- From: "Helen Dynah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 05, 2002 3:32 PM Subject: Array of file paths.
> > Hi again, > > > > I have an array of file paths. I made this array so that I can open several different files one at a time. I want to iterate through this array by opening each file, writing some data to it and closing it. Does anyone know how I would go about doing this? Thanks in advance. > > > > Helen > > > > --------------------------------- > Music, Movies, Sports, Games! Yahoo! Canada Entertainment > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]