Re: DBD::File missing f_ext

2008-09-18 Thread H.Merijn Brand
On Thu, 18 Sep 2008 10:59:52 -0700, Jeff Zucker <[EMAIL PROTECTED]> wrote: > H.Merijn Brand wrote: > > Attached patch implements the following: > > > > f_dir => "/data/csv/foo", > > f_ext => ".csv", > > f_ext => ".csv/i", # Case ignore on extension, use given on write > > f_ext => ".csv/r

Re: DBD::File missing f_ext

2008-09-18 Thread Jeff Zucker
H.Merijn Brand wrote: Attached patch implements the following: f_dir => "/data/csv/foo", f_ext => ".csv", f_ext => ".csv/i", # Case ignore on extension, use given on write f_ext => ".csv/r", # Extension is required, ignore other files in f_ext => ".csv/ri", # f_dir. Options can be c

Re: DBD::File missing f_ext

2008-09-18 Thread H.Merijn Brand
On Tue, 16 Sep 2008 18:48:08 +0200, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote: > I have a big directory with a CSV dump of a directory. Updates versions of DBD/File.pm and DBD/CSV.pm will be available while I dig through their restrictions as http://www.xs4all.nl/~hmbrand/DBD::File.pm

Re: DBD::File missing f_ext

2008-09-16 Thread H.Merijn Brand
On Tue, 16 Sep 2008 18:48:08 +0200, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote: > Suggested implementation attached. > TODO includes tests and file creation (which I didn't write yet) Much more robust version here: http://www.xs4all.nl/~hmbrand/File.pm -- H.Merijn Brand Amsterdam Pe

Re: DBD::File missing f_ext

2008-09-16 Thread H.Merijn Brand
On Tue, 16 Sep 2008 18:48:08 +0200, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote: > Attached patch implements the following: 1. Patch still has a debug statement in it 2. I've tried hard to keep the original layout, but I might have failed there -- H.Merijn Brand Amsterdam Perl Monger

DBD::File missing f_ext

2008-09-16 Thread H.Merijn Brand
I have a big directory with a CSV dump of a directory. The folder has a lot of table dumps in CSV format (amongst a lot of other database related files) and all those files have a lovely recognizable extension: .csv So I found it stupid from DBD::CSV to have a table.csv file and then forcing me t