Convert a text file to an HTML page in such a way that the entities (less than, greater than, ampersand, and any euro-chars) are all properly coded. Example uses /etc/aliases.
@ARGV = qw(/etc/aliases); # open STDOUT, ">alias.html" or die "blah: $!"; use HTML::Entities; use CGI qw(:all); print start_html("Our new aliases"), pre(join "", map { encode_entities($_) } <>), end_html;