Re: creating new config file based on array

2001-07-10 Thread Jeff 'japhy' Pinyan
On Jul 10, Messervy, Joe M said: >#!/usr/bin/perl -w > >use File::Copy; > >opendir MYDIR, "." or die "egad!: $!"; >@allfiles = grep !/^\.\.?$/, readdir MYDIR; >closedir MYDIR; > >foreach $allfiles (@allfiles) { >copy("config", "config.$allfiles"); >eval "s//mydirectorystucture/log//mydirectorystu

creating new config file based on array

2001-07-10 Thread Messervy, Joe M
Hello, I have several files in a directory, and I need to create a config file for each one of them. I already have a standard config file, but it must be modified for each of the files in the directory (hope this makes sense). Here is what I have: #!/usr/bin/perl -w use File::Copy; opendir