Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my $data = _test(); my $header_row; push @$header_row, ["City Name", "Last Name", "First Name", "Addrress +",], ["", "", "", "",]; unshift @{ $data }, @{ $header_row }; print Dumper $data; sub _test { my @data = [ { 'CITY' => 'San Frans', 'LAST_NAME' => 'Doe', 'FIRST_NAME' => 'Jonh', 'ADDRESS' => '100 Main Street', }, ]; return \@data; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding rows of data
by atcroft (Abbot) on Dec 02, 2014 at 16:03 UTC | |
by Anonymous Monk on Dec 02, 2014 at 16:15 UTC | |
by Anonymous Monk on Dec 02, 2014 at 16:29 UTC | |
by Anonymous Monk on Dec 02, 2014 at 16:56 UTC | |
|
Re: Adding rows of data
by 2teez (Vicar) on Dec 02, 2014 at 18:32 UTC |