Are you thinking of Java where e.g. you can give it more heap? Perl doesn't really work that way which means you should treat the out of memory error as legitimate. There is a chance you could build your own Perl that uses less memory than the one you are using right now but that sounds worse than throwing more memory at the problem. I don't see how you can avoid some code changes, which means you should take a look at that FAQ Perrin mentioned. You could also post your code (prefferably using code and readmore tags) and see if anyone offers some advice.