http://qs321.pair.com?node_id=36885

Just a tiny little script that takes a list of URLS, fetches them and compiles them.
Useful for checking all your pages will fit on the phone.
#! /usr/bin/perl -w use strict; use LWP::Simple; use CGI::WML; foreach my $url (@ARGV) { my $wml = get($url); if ($wml) { my $wmlc = CGI::WML->wml_to_wmlc(-wml => $wml); if ($wmlc) { printf "$url => WML:%d WMLC:%d\n",length($wml),length($wmlc); } else { print "Failed to compile $url\n"; } } else { print "Failed to fetch $url\n"; } }