in reply to Re: Adding rows of datain thread Adding rows of data
Well, then at least add a hash reference instead of two array references to match data structure from your _test() ...
... push @{ $header_row } , [ { 'City Name' => '' , ... } ] ; ... [download]
BTW|FWIW, your headers|key names are different in letter case & spellings.
my $data_test = [ [ 'City Name', 'Last Name', 'First Name', 'Address', ], [ '', '', '', '', ], [ 'San Frans', 'Doe', 'Jonh', '100 Main Street', ], ]; [download]