in reply to Re^3: Array or Hashin thread Array or Hash
Can you provide the code of the "total_size" sub?
As it looks interesting.
See Devel::Size