Software > Perl

Perl Projects

Character Set Conversion Scripts
Description

This is a collection of short scripts to convert data between different character encodings. Currently supported are Macintosh to ISO-8859-1, ISO to Mac, ISO to UTF-8, UTF-8 to ISO, Mac to UTF-8 and UTF-8 to Mac.

They are very handy as BBEdit Perl Filters on Mac OS X where you can select some content in a text editor window and run the desired conversion script. I originally wrote these scripts to replace the MIDEX conversion plugin which was missing shortly after OS X came out (it is now available for OS X at the BBEdit plugins page).

But they are equally useful on the command line on other operating systems.
To use them in BBEdit, copy the files into the BBEdit Support/UNIX Support/UNIX Filters folder.

Platform BBEdit or any Perl environment
Download One tarfile with all scripts: conversion-scripts.tar.gz
or the source code for each script individually:
convert_iso2mac.pl
convert_iso2utf8.pl
convert_mac2iso.pl
convert_mac2utf8.pl
convert_utf82iso.pl
convert_utf82mac.pl

 

random.pl
Description This is a CGI script that produces nothing but an exact amount of random, uncompressible garbage from memory, without disk access, as fast as possible.

It is useful for throughput tests of dialup links etc.
Platform Any CGI environment, tested on Apache/Linux
Download random.pl

 

zyxel-dsl-dyndns-update.pl
Description This script logs in to a ZyXEL DSL router, fetches its current IP addres on the WAN interface and updates a dyndns.org account if necessary. Usually it is run in a regular interval, e.g. as cron job.

Requires the Net::Telnet module from CPAN.
Platform Any Perl environment, tested on Linux and MacOS
Download zyxel-dsl-dyndns-update.pl

 

Barcode.pm
Description A Perl module for the creation of barcodes according to the barcode128 standard. It can create the barcodes as PNG and EPS files. It requires the GD.pm library for the former.
Also included is a small CGI script that creates barcodes as a demo. You can see it in action in the fun section.
Platform Any Perl environment with support for GD.pm
Download barcode128.tar.gz Complete package
Barcode.pm View just the module
21. March 2005