Perl has a standardized interface for databases, so it's theoretically not tied to a single database. Of course, no two databases interpret even fairly basic SQL code in the same way, so you're still stuck in incompatibility land, but at least it's not because of the API.