Hi.
I've got two scripts I am running and they both consume large amounts
of memory (10MB).
How would I go about finding where the memory is being used and
figuring out how to reduce the memory footprint.

Both scripts start off with:

#!/usr/bin/perl
use warnings;
use strict;
use WWW::Mechanize;
use HTTP::Cookies;
use Term::ReadKey;

Would removing a "use" help? I can disable strict and warnings while
not editing the script. And Term::ReadKey isn't really needed.
Is it possible that Mechanize is using a really large amount of RAM? I
set the stack_depth to 1.

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


Reply via email to