Quote:
|
Originally Posted by prodiac
Code:
#!/usr/local/bin/perl
$file_orig = "_somefile.html";
$files = "filename_list.txt
open (FILE, $files);
@allfiles=<FILE>;
close(FILE);
foreach $name (@allfiles) {
chop($name);
system("/bin/cp $file_orig $name");
}
exit;
|
There was a mistake on the following line:
Code:
$files = "filename_list.txt
It should be:
Code:
$files = "filename_list.txt";