It is a scalar anonymous hash reference. If by "real hash" you mean "not an anonymous hash reference", try (untested):
my %newhash = ( data => { ... }, total => do { ... }, );
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Merge hashes in specific format
by AnomalousMonk
in thread Merge hashes in specific format
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |