Archive for Perl

Behold!

Comments

Webalizer Postprocessor for Page Names

I hammered out this Perl program to process the output of the Webalizer program. Specifically, this inserts into the generated HTML the <TITLE> tag information from any URLs referenced in the report so that you can see at a glance the actual page names that are driving traffic to your site. It uses LWP::UserAgent to pull in referenced pages and then extract the title. There’s a cache mechanism so that pages are not refreshed, and the script does a HEAD request first to ensure that the content type is text/html. Once a file is processed it is tagged so that subsequent parses won’t screw anything up.

Read the rest of this entry »

Comments

mod_gzip testing.

A small script to test whether or not a URL is being GZIP-encoded.

Update: Found a nice online tool to test for GZIP encoding.

Read the rest of this entry »

Comments

CVS history viewer.

Wrote this quick Perl script to view a date-sorted history of a CVS repository.

Read the rest of this entry »

Comments