Article View: pl.comp.lang.perl
Article #736Re: dbase IV files to comma delimited files
From: Honza Pazdziora
Date: Mon, 01 Dec 1997 10:00
Date: Mon, 01 Dec 1997 10:00
19 lines
1433 bytes
1433 bytes
"Akira" <j.a.d.@worldnet.att.net> writes:
> Does anyone have a script that will take a dbase IV file and convert it to a
> comma delimited file using Perl 5??
use XBase;
my $table = new XBase("table.dbf") or die XBase->errstr();
$table->dump_records();
__END__
You can get XBase.pm from CPAN, it's in DBD-XBase-x.xx.tar.gz package.
Hope this helps.
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
I can take or leave it if I please
------------------------------------------------------------------------
Technical Details
Message-ID:
<adelton.880970449@aisa.fi.muni.cz>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!fu-berlin.de!eerie.fr!newsfeed.eerie.fr!Cabal.CESspool!bofh.vszbr.cz!news.muni.cz!aisa.fi.muni.cz!adeltonReferences:
<65s8vd$r1d@bgtnsc03.worldnet.att.net>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.perl.misc,comp.lang.perl.modules,comp.lang.perl.tk,de.comp.lang.perl,fr.comp.lang.perl,pl.comp.lang.perl Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!fu-berlin.de!eerie.fr!newsfeed.eerie.fr!Cabal.CESspool!bofh.vszbr.cz!news.muni.cz!aisa.fi.muni.cz!adelton From: adelton@fi.muni.cz (Honza Pazdziora) Subject: Re: dbase IV files to comma delimited files X-Nntp-Posting-Host: aisa.fi.muni.cz Message-ID: <adelton.880970449@aisa.fi.muni.cz> Lines: 15 Sender: news@news.muni.cz (News Admin) Organization: Masaryk University,Brno References: <65s8vd$r1d@bgtnsc03.worldnet.att.net> Date: Mon, 1 Dec 1997 10:00:49 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit