note
syphilis
Interesting post ... it prompted me to run the following:
<c>
use warnings;
use Devel::Size qw(size);
$str = "123";
$str += 0; # numify $str
$num = int("123");
print size($str), " ", size($num), "\n";
</c>
On Win32 that outputs <c>32 16</c> (<c>56 24</c> on a 64-bit build of perl). I guess that's a reliable way of determining the memory consumed by both <c>$str</c> (32 bytes) and <c>$num</c> (16 bytes). Zat right ?
<br><br>Cheers,<br>Rob
641464
641464