in reply to What code should I write in Perl to connect to an ODBC DB on a linux platform?

A segfault is a rather extreme error, try below in a step by step manner to try isolating where/what is causing it.

Specifically:
In General: