Article View: comp.lang.perl.misc
Article #320Re: dbase IV files to comma delimited files
From: Honza Pazdziora
Date: Mon, 01 Dec 1997 00:00
Date: Mon, 01 Dec 1997 00:00
20 lines
1658 bytes
1658 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:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<65s8vd$r1d@bgtnsc03.worldnet.att.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1133f4,7c44ccc8bfa09802 X-Google-Attributes: gid1133f4,public X-Google-Thread: 10f591,7c44ccc8bfa09802 X-Google-Attributes: gid10f591,public X-Google-Thread: 112333,7c44ccc8bfa09802 X-Google-Attributes: gid112333,public X-Google-Thread: 10ba3c,7c44ccc8bfa09802 X-Google-Attributes: gid10ba3c,public X-Google-Thread: f72c1,7c44ccc8bfa09802 X-Google-Attributes: gidf72c1,public X-Google-Thread: fa0ae,7c44ccc8bfa09802 X-Google-Attributes: gidfa0ae,public From: adelton@fi.muni.cz (Honza Pazdziora) Subject: Re: dbase IV files to comma delimited files Date: 1997/12/01 Message-ID: <adelton.880970449@aisa.fi.muni.cz> X-Deja-AN: 294152037 Sender: news@news.muni.cz (News Admin) X-Nntp-Posting-Host: aisa.fi.muni.cz References: <65s8vd$r1d@bgtnsc03.worldnet.att.net> Organization: Masaryk University,Brno 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