in reply to opening a database file

I don't know if plain DBD::ODBC will work against a SQL Anywhere database, in particular if the database license has expired.

You might want to try DBD::ASAny which is specifically written to access SQL Anywhere databases (though I suspect that the license issue is going to be the real problem here...)