I agree with ides this would be a pretty surprising source of errors, but you'll find a variety of ways to measure your memory usage and the usage of individual data structures in Total Memory Size Used up by a Perl Script.
Comment on Re: Monitoring memory usage in Perl program