I thought someone was already working on making a Perl available as alanguage within Postgres. If not, I'm willing to give it a shot.
-Z-