in reply to "benchmarking" memory usage
Build a perl with DEBUGGING defined. That will allow you to use the -Dm run option, which tracks all memory allocations. See perlrun.
After Compline,Zaxo