GertMT has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use diagnostics; use Data::Table; my $t1 = new Data::Table( [ [ 1, 2, 3 ], [ 10, 20, 30 ] ], [ 'A', 'B' +], 1 ); my $t2 = new Data::Table( [ [ 1, 2, 3 ,4], [ 11, 22, 33,44 ] ], [ 'C', + 'D' ], 1 ); print $t1->csv; print "-------\n"; print $t2-;csv; print "-------\n"; $t1->join($t2,3,["A;],["C"]); print $t1->csv; exit; =head EXPECTED RESULT... A,B,D 1,10,11 2,20,22 3,30,33
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data::Table and join
by Krambambuli (Curate) on Oct 18, 2007 at 08:42 UTC | |
by GertMT (Hermit) on Oct 18, 2007 at 08:54 UTC | |
by Anonymous Monk on Sep 14, 2011 at 20:01 UTC |