#!/usr/local/bin/perl
#
## text.pl
##
########################
#
# make the sanitisation of texte.html files
#
##########################
# Set the variables
##$file_dir = "/usr/local/etc/httpd/htdocs/demos";
##$file_dir_url = "http://www.freescripts.com/demos";
$file_dir = ".";
$file_dir_url = ".";
# These specify the directory where all the files you want links added for
# are located. The first is their path on the server, the second is
# thier URL.
$input_file = "texte0.html";
$output_file = "texte.html";
#
# That's all there is to it. You can edit the resulting file to your heart's
# content. Be sure to chmod the script to 755. This script can (and should)
# be run from the Unix shell rather than a browser. (A web browser should
# be able to run it, but then the resulting file will be owned by nobody
# and the directory where the file is created would need by be chmod 777)
#################
sub header {
@hdr = (
"\n