perl
8 articlesWhat a web server can tell you without sending a page
A Perl CGI asks a web server for its headers without downloading the page. What HTTP's HEAD request reveals, and why the reply is a report rather than proof.
Converting Numbers to Words in Perl
A Perl module for spelling numbers in English, with source code, grouping examples, practical uses, and plans for Indian English and words-to-number conversion.
Making Unix Web Servers Case-Insensitive
Two Perl scripts for recovering miscapitalized URLs on Unix servers, with a DBM lookup, helpful error messages and the complete original newspaper-site code.
A Date and Time Package for Perl
A Perl 5 date-formatting package, with working constructor examples, the original source, and practical reuse in the tools I built for newspaper web sites.
Netscape Acknowledged My Directory Listing Script
Netscape published my Perl CGI for custom directory listings as Tech Note 20021, solving a gap in their server software.
Building an Ad System for a Newspaper Web Site
The Perl click tracker and ad-rotation scripts I built for Philadelphia Newspapers, with monthly flat-file logs and reusable page templates.
Reading GIF Dimensions in Perl
A Perl function to read GIF image dimensions and generate correct HTML img tags automatically.
Splitting Files for Floppy Disks
A Perl script to split large files into floppy-disk-sized pieces for transport across unreliable connections.