http://www.perlmonks.org?node_id=1021877


in reply to Format values into a hash question

No, I'd suggest you change line 7 to:

$new_row = "First: $row->{'NAME_ONE'} Last: $row->{'NAME_TWO'} CITY: $ +row->{'CITY'} ZIP: $row->{'ZIP'}";

The problem is that you're creating a set of values, and sticking only one into $new_row, and discarding the rest. If you'd print the contents of $new_row afterwards, you'll see it.

...roboticus

When your only tool is a hammer, all problems look like your thumb.