#!/usr/bin/perl use Url2Image; # get the information from the url $ENV{REQUEST_URI} =~ m|/f/([^/]+)/(.*)$|; my $style = $1; my $text = $2; # output image my $u2i = new Url2Image($style,$text); print "Status: 200\n"; $u2i->print;