in reply to How would you use perl debugging tools to pinpoint the problem here?
$hash->{$_}=1 for 1 .. 10000000;
What you have here is known as a memory sponge. You don't need a debugger to see what is happening. You are asking the perl process to soak up (pretty well) as much RAM as you have on your system. Whether this will:
Terminate with a message about exceeded resources (ulimit)
Cause the machine to thrash and swap with its page file
Lock up and require a reboot
depends on which operating system you are running.
Hope this helps
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
|---|