diff options
author | martti <martti@pkgsrc.org> | 2008-08-12 09:41:27 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2008-08-12 09:41:27 +0000 |
commit | 00b75ead4858e0942fc0011cb28adbfaff48e893 (patch) | |
tree | 6c3d73697e0c90af5c55535345cb68c55f3bdf36 | |
parent | b997368ef677600c7a28e0856ce3aeb6fd25b052 (diff) | |
download | pkgsrc-00b75ead4858e0942fc0011cb28adbfaff48e893.tar.gz |
Updated databases/p5-Data-Table to 1.54
1.54 Sun Feb 10 21:35:02 PST 2008
Modify fromFileGetTopLines method, remove dependency on bytes
bytes::substr causes infinite loop in some older version of perl
1.53 Thu Jan 3 21:13:40 PST 2008
add "use bytes" to Table.pm
Just patched test.pl, because some OS cannot open in-memory file.
1.52 Fri Dec 14 11:48:42 PST 2007
1.51 Wed Dec 12 15:36:22 PST 2007
1. Add a class methods Data::Table::fromFile(file_name), which can
guess the file format and call fromCSV/fromTSV internally.
fromFile relies on the following new methods
fromFileGuessOS(file_name)
fromFileGetTopLines($file_name, $OS, $lineNumber)
fromFileIsHeader($string)
fromFileGuessDelimiter($arrayRefToLines)
to figure out if the input file is from UNIX/PC/MAC, whether its first
row contains column headers, and whether it uses ",", "\t" or ":" as
field delimiters.
It then calls either fromCSV or fromTSV to return the table object.
$t = Data::Table::fromFile("myFileName_CSVorTSV_HeaderOrNoHeader_UNIXorPCorMAC
");
Please refers to the updated document for details.
2. When fromFile/fromCSV/fromTSV reads from an empty file, it returns
an undef object, rather than quit.
3. Provide more informative error message, when invalid column header is found
.
4. fixed a bug in 1.51 where fromFileGuessOS failed in Windows
Thanks to patches provided by "whitebell".
-rw-r--r-- | databases/p5-Data-Table/Makefile | 4 | ||||
-rw-r--r-- | databases/p5-Data-Table/distinfo | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/databases/p5-Data-Table/Makefile b/databases/p5-Data-Table/Makefile index f5553cdd021..5ac7ea2f875 100644 --- a/databases/p5-Data-Table/Makefile +++ b/databases/p5-Data-Table/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2008/06/20 01:09:11 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2008/08/12 09:41:27 martti Exp $ -DISTNAME= Data-Table-1.50 +DISTNAME= Data-Table-1.54 PKGNAME= p5-${DISTNAME} CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Data/} diff --git a/databases/p5-Data-Table/distinfo b/databases/p5-Data-Table/distinfo index bf211ca6e18..6a03ab62092 100644 --- a/databases/p5-Data-Table/distinfo +++ b/databases/p5-Data-Table/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.2 2006/10/16 09:24:54 martti Exp $ +$NetBSD: distinfo,v 1.3 2008/08/12 09:41:27 martti Exp $ -SHA1 (Data-Table-1.50.tar.gz) = 2f63c31835764d7934f0be042a30016deaca9027 -RMD160 (Data-Table-1.50.tar.gz) = d56ff3c80e4c8496503afc49ab228f988bb55aff -Size (Data-Table-1.50.tar.gz) = 40170 bytes +SHA1 (Data-Table-1.54.tar.gz) = 5d1d8361e3050fd6017248aafcc1972d0c45ebb9 +RMD160 (Data-Table-1.54.tar.gz) = 3cd77e0115995b2e04d3fcd312e7c1cd301b0c79 +Size (Data-Table-1.54.tar.gz) = 43709 bytes |