my $dbh = DBI->connect("dbi:Informix:testdb");
I would think that the argument to "connect" should be a file name that is valid on Windows. I would also suspect that $dbh is "undefined".
See if you can find some "test DB" provided in the Informix package, then supply full path name to that to see if you can connect to it with a defined, non-zero $dbh. Update: or perhaps, just modify name to be "Informix.testdb".
Update: I'm not a super DB guru, but I do know that sometimes there are some steps that you have to go through to "get the db started", meaning that you can't just start with an "empty db file". To set up even a simple table with just say "date", "city" or whatever, the DB has to "learn" what "date" and "city" mean. As I said, I am not an Informix guy, but look in the documentation for how to get a DB started. There is probably a readable DB already set up as a demo that you can play with. I am guessing, but I suspect that this is true. |