in reply to How to limit resources ?

Check out the BSD::Resource module. It provides a perl interface to the getrlimit() family of system calls for systems that implement them (don't let the name fool you; according to the Linux manpages it's required for SVr4 as well).