I just finished writing a short demo on how to connect Perl and FileMaker using HTTP and XML (much faster than ODBC). If you're interested, check out the demo:
http://mariano.petersonpages.com/demo/fmp/fmp_perl.zip

If you've got suggestions or improve the code, please email me. My email address is in the demo.