in reply to Out of memory.
use warnings; use diagnostics; [download]
You may also use -T to enable taint checking and see if that tells you anything interesting.
~~ naChoZ