Well, that would give the size of the Storable image of the data, not the live-in-RAM size... and I think the OP intended the latter.
So, for the OP: use Devel::Size, or study the sources...
--
dakkar - Mobilis in mobile
Most of my code is tested...
In reply to Re^2: Is there a way to find the size of a data structure?
by dakkar
in thread Is there a way to find the size of a data structure?
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |