title: How can a Perl script know its own memory footprint?
body: <p>I have a long running Perl script and I'd like to let it know (and report) how much memory it is using. I'd like to have this information both on Linux and Windows and if possible on Mac OS X as well.</p>