in reply to printing columns of data
use strict; use warnings; # use Data::Dumper; my %hash = (); my @array1 = qw(a b c d e); my @array2 = qw(1 2 3 4 5); push @{$hash{col1}}, @array1; push @{$hash{col2}}, @array2; # print Dumper(%hash); # Result should look like this: # col1,col2, # a,1 # b,2 # c,3 # d,4 # e,5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing columns of data
by klassa (Acolyte) on Sep 02, 2008 at 13:49 UTC | |
by klassa (Acolyte) on Sep 02, 2008 at 13:53 UTC |