#!/user/bin/perl @textFile = `cat Brain1.txt`; foreach $line (@textFile) { chop $line; $pagefile = $line.".shtml"; @ModPageFile = `cat $pagefile`; foreach $fileline (@ModPageFile) { $fileline =~ s/$line.shtml"-->/$line.shtml"-->\n