On Monday 13 Oct 2003 6:19 pm, Daniel Staal wrote:
> --On Monday, October 13, 2003 17:37 +0100 Gary Stainburn
>
> <[EMAIL PROTECTED]> wrote:
> > 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

Hi Daniel,

I've tried including both relative and absolute paths to the database 
directory, as well as with my OP were I left it to the default of the current 
directory.

I've also checked permissions to the directories, although as I'm running as 
me, inside my home dir, and as I can cd into the dir and 'ls' it that can't 
really be the problem anyway.

However, I'm still stuck.

Gary
> ---------------------------------------------------------------
> 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.
> ---------------------------------------------------------------

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to