#!/usr/bin/perl -w # # this script updates the "Last update on..." in a web page # # written by: Maciej Kalisiak # # latest version and info: # http://www.eecg.utoronto.ca/~mac/projects/sendwebpages.html # ####### # you might want to customize some of these # # home_addr: the web address of your main/root web page # email_addr: your email address # my_name: your full name # font_size: size of font to use for the footer # $home_addr="http://www.eecg.utoronto.ca/~mac"; $email_addr='mac@dgp.utoronto.ca'; $my_name="Maciej Kalisiak"; $font_size="-1"; $date=`date`; die "need a filename" if( @ARGV != 1 ); $file=shift; die "not an HTML file?" if( not $file =~ /\.html/i ); open FILE, $file or die "unable to open file"; @_ = ; $_ = "@_"; close FILE; # generate the new blurb $blurb = <


Last modified on: $date HOME $my_name <$email_addr>
END_OF_BLURB # replace blurb s/\n/$blurb/s; open FILE, ">$file" or die "unable to open file for writing"; print FILE;