in reply to Re: Combining two references
in thread Combining two references

"Firstly, which line is giving you that error ?"

You should be able to determine that. Which is the first line that tries to use something as a hash reference? This one:

my $name = $row->{ NAME };