Hi folks, I've got the code below, which is suposed to be showing me the contents of a .dbf file. However, whenever I try to run the program it fails to open the file.
Can anyone tell me what I'm missing please (I've tried appending the .dbf but it made no difference).
[EMAIL PROTECTED] data]$ cat ~/t1 # !/usr/bin/perl -w use DBI; select(STDERR); $|=1; select(STDOUT); $|=1;
my $dbh=DBI->connect("DBI:XBase:") || die "cannot connect: $DBI::errstr";
I think your problem is right here. I'm not familiar with DBD::XBase, but for most of the DBI modules you have to tell it what file/database to connect to in the connect string. You've only told it which database program/protocol to use, not where the actual database is. Have you tried appending the full path to the file? (That appears to be what it asks for, according to the docs.)
Daniel T. Staal
--------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]