Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 9C888A5683 for ; Thu, 12 Dec 2013 01:30:22 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 1243214A41A; Thu, 12 Dec 2013 01:30:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D362314A302 for ; Thu, 12 Dec 2013 01:30:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id ajPa74BREJtm for ; Thu, 12 Dec 2013 01:30:17 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 2DE7814A2A9 for ; Thu, 12 Dec 2013 01:30:17 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 2B99196; Thu, 12 Dec 2013 01:30:17 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 12 Dec 2013 01:30:17 +0000 From: "Wen Heping" Subject: CVS commit: pkgsrc/databases/p5-Data-Table To: pkgsrc-changes@NetBSD.org Reply-To: wen@netbsd.org X-Mailer: log_accum Message-Id: <20131212013017.2B99196@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: wen Date: Thu Dec 12 01:30:17 UTC 2013 Modified Files: pkgsrc/databases/p5-Data-Table: Makefile distinfo Log Message: Update to 1.68 Upstream changes: 1.68 Mon Aug 6 22:22:22 PDT 2012 Patch fromFileGetTopLines() and fromFileIsHeader(), which are used by fromFile(). Impact: minor. Improve performance of fromFileGuessOS() Improve fromFile(), fromCSV(), csv() to support using \r, \n within a CSV field. join() now supports {matchNULL => 1, NULLasEmpty => 1}, if one would like to treat NULL as empty string, or treat NULL as equal (however, not equal to empty string). Both are set to 0 by default. Suggested by Kyle Horton & Wilson Dave. Remove inheritance from AutoLoader and Exporter. Thanks to Brian Wightman Thanks to Nicholas Andonakis for sharing his code, quite a few ideas in his package inspired the improvements below! Add new shortcut methods: lastRow(), lastCol(), colName($colNumericIndex) One can now write foreach my $i (0..$t->lastRow) instead of foreach my $i (0..$t->nofRow-1) Add iterator(), so that one can now write my $next = $t_product->iterator(); while (my $row = $next->()) { # have access to a row as a hash reference, access row number by &$next(1); $t_product->setElm($next->(1), 'ProductName', 'New! '.$row->{ProductName}); } addCol() can take the default value for the new column (first argument) addRow() supports {addNewCol => 1} moveCol() can take a $newColName. setElm() can set a value for multiple cells, specified by ref to row array and col array match_string(), match_pattern(), match_pattern_hash() also produce $parentTable->{MATCH} # match returns all matched row ids in $t_product->{MATCH} (ref to row ID array) $t_product->match_pattern_hash('$_{UnitPrice} > 20'); # create a new column, with 'No' as the default value $t_product->addCol('No', 'IsExpensive'); # use $t_product->{MATCH} to set values for multiple Elements $t_product->setElm($t_product->{MATCH}, 'IsExpensive', 'Yes'); 1.67 Wed Jul 25 11:47:23 PDT 2012 Update Change.txt file to point out $keepRestCol defaults to 1 is only for group() For pivot(), $keepRestCol is still default to 0 as before. 1.66 Wed Jul 25 11:03:29 PDT 2012 Change the default value of keepRestCol in group() to 1, instead of 0 to be compatible with older versions Thanks to Kyle Horton To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 pkgsrc/databases/p5-Data-Table/Makefile cvs rdiff -u -r1.4 -r1.5 pkgsrc/databases/p5-Data-Table/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.