in reply to Re^2: Using grep to remove array element from HoAoH leaving empty array-hash element
in thread Using grep to remove array element from HoAoH leaving empty array-hash element
It's not the 'after' that's important. The warning is your grep condition telling you the data is wrong (i.e. different than expected) before grep is called. Data::Dumper shows us this bad data: the extra "{}" at the end of the list in the 'before' dump. What you must do now is figure out how that extra (fieldless) record is being added to your 'database'.