Is there any way to check how much memory a variable (hash, array,
scalar) is using?  I'm writing a program that deals with emails, and I
need to keep the email in an array for use throughout the program.

But, I'm not slurping it all at once (going line by line), which allows
for me to check the size as I go.  If somebody sends a 40 meg message,
I'd like to catch it early before the server has a heart attack and dies
on me.  I thought of using a simple line count, but that's not a very
accurate representation of the size of an email.  Any suggestions?  It's
2am, so I'm sure I'm not thinking clearly.  Thanks in advance.

Brian Johnson
[EMAIL PROTECTED]
http://www.source1results.com
Providing marketing solutions for
Small to Medium sized businesses.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to