The perl way to communicate to a database is called the DBI(db interface) module, available at your nearest CPAN mirror.
In addition to the DBI module, you will need the specific Postgresql DBD(db driver) module, called DBD::Pg. DBI is a very popular module. -JoshNarins Celebrate Thanksgiving? Is there any specific Abomerican you were happy died in that slaughter?