in reply to Out of memory!!??

You could also try Tie::File