GertMT has asked for the wisdom of the Perl Monks concerning the following question:
Can someone explain me what I'm doing wrong if I try# !/usr/bin/perl -w use strict; use diagnostics; use Data::Table; my $table = new Data::Table( [ [ 20070410, 20070415, 20070417, 20070418 ], [ 10, 20, 15, 42 ] ] +, [ 'Dates', 'Values' ], 1 ); print $table->csv;
Thanks,# !/usr/bin/perl -w use strict; use diagnostics; use Data::Table; my $dates = "20070410, 20070415, 20070417, 20070418"; my $quan = "10, 20, 15, 42"; my $table = new Data::Table( [ [$dates], [$quan] ], [ 'Dates', 'Values +' ], 1 ); print $table->csv;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data::Table and defining $data
by shigetsu (Hermit) on May 11, 2007 at 12:08 UTC | |
by GertMT (Hermit) on May 11, 2007 at 12:23 UTC |