View Single Post
Old 04-17-2005, 01:36 AM  
prodiac
Confirmed User
 
Industry Role:
Join Date: Sep 2003
Location: amerinoc.com
Posts: 419
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";
prodiac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote