in reply to Combining two references

Firstly, which line is giving you that error ?

Secondly, why not dump $all to see what it contains?

see also : basic debugging checklist

Replies are listed 'Best First'.
Re^2: Combining two references
by Anonymous Monk on Jun 08, 2015 at 18:07 UTC
    "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 };