in reply to How do I determine the amount of memory used by a variable?

It's not even possible to determine how much memory a variable really uses.
When you have $a = 1, 1 is being saved. After using $a .= '', a string is added, but its numeric value is not forgotten.
  • Comment on Re: How do I determine the amount of memory used by a variable?