Clive Freedman wrote:

I have DBI::CSV running OK when the table is created in the same folder as
the perl script, and the data file is also in the same folder.  But I cannot
find a way of telling the script that the dbh table file and the data file
are in a different folder.  When I try to do this I get parse error and file
not found error.  For example I cannot get these to work:

c:/program files/apache group/apache/htdocs/cgi-bin/data/db_table

Use the f_dir attribute, for example:

$dbh->{f_dir}='c:/program files/apache group/apache/htdocs/cgi-bin/data';
$dbh->prepare("SELECT * FROM db_table");

--
Jeff





Reply via email to