#!/opt/local/gnu/bin/perl -w $tmp = "tmp$$"; foreach $file (@ARGV) { system( "gunzip $file" ); $file =~ s/.gz$//; open(FILE, "<$file"); open(TMP, ">$tmp"); while () { print TMP $_; if (/<\/pre>/) { writefile(COPYRIGHT, TMP); } } close(TMP); system( "mv $tmp $file; gzip $file" ); } sub writefile { my($format, $FILEH) = @_; select($FILEH); $~ = $format; write($FILEH); select(STDOUT); } format COPYRIGHT = © The research materials and data herein are the copyright of the Centre for Discrete Mathematics and Computing, The University of Queensland, 20 December, 1999. They may only be used with the permission of @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "Professor Anne Penfold Street and" @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< "Dr Greg Gamble."
.