use Devel::Size 'total_size'; my $num=1000; print total_size($num) . $/; print total_size(pack("w*",$num)) . $/;
the output is:
24 48
why?
updatethe result become
48 48
if I put it into a file
In reply to Why is the size even bigger after pack? by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |