Sorry, I really don't understand what you mean by "Map".
I have an html file called new.html that exists in the directory.
I need that code to replace the code in every other html file in the same directory. This is a one time run.
I am really a newbie so excuse this mess but might help explain ...
#!usr/bin/perl
$newfile = newfile.html
$directory = /will/be/abs/path
open(dir,$directory);
$files=@file;
foreach $file {
if ($file =~ \.html) {
$filename = $file;
del($filename);
copy($newfile, newfile.dat); ????
rename(newfile.dat, $filename); ???
}
}
As you can see, I am pretty much clueless...