On 6/15/2004 6:34 PM, Papo Napolitano wrote:

Hi,

I just discovered this code:

[CODE SNIPPED]

makes my script eat all the available system memory (and swap!)
So my question is how do destroy $msg so the memory is freed?
'undef $msg' or '$msg = undef' inside the loop aren't working.

my variables are lexically scoped, meaning that they cease to exist after the enclosing scope ends. In this case the variable is created and destroy through each iteration of the loop. I.e. You don't need to do anything to recover resources; Your code should work as is.


I do not see the problem here. It may be a bug in the version of MIME::Entity or one of its dependents that you are using. Check <http://rt.cpan.org> for any known problems with your version. Try upgrading to the latest version. If problem persists, report it to RT /AND/ the author. If the fix is long in coming, consider downgrading.

perl -MMIME::Entity -e 'print $MIME::Entity::VERSION'
=> 5.404

Regards,
Randy.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to