Hi All,

How do I read DBF files within PERL on UNIX???

If you could give a simple example that would be great....

I had written this trial code (see below) a long time back and I guess it used to work....some how now it is not working....does not produce any error nor any results. DBF has data in there.

---------------------------------------------
#!/usr/bin/perl

use DBI;

my $DBPROC;
my $SQLTEXT;

my @data;

$DBPROC=connect( "dbi::ODBC:GIBS", 'RDU');
$SQLTEXT=" SELECT CONO,S_CLCLASID, S_CLTYPE, 'NO DESC', 'N', 'N',SIGNATURE FROM CLASDATA";

while ($DBPROC != NO_MORE_RESULTS) {
while ( @data = dbnextrow($DBPROC)){
print "@data \n";
}
}

print "\n";

-----------------------------


thanks,

RK