in reply to Data into Array of Hashes

Use {} instead of []:
push @array, { code => $data->{'code'}, ... };

Generation of an ARRAY OF HASHES

Replies are listed 'Best First'.
Re^2: Data into Array of Hashes
by Anonymous Monk on Oct 23, 2015 at 17:28 UTC
    Used "{}" instead of "[]", now I am getting this error:
    "$data" requires explicit package name at... "%rows" requires explicit package name at...
      Please show the code that is giving you these errors. It is quite probably easy to fix, but it's difficult to say where the errors are without seeing the updated code.