[CentOS] Limit RAM used by a perl script

Tue Jul 21 12:48:39 UTC 2009
Sean Carolan <scarolan at gmail.com>

> While having hard limits makes it safer, wouldn't it be better to control the memory usage of the script instead of setting limits that would trigger an "out of memory"...?

How would you control the memory usage of the script if it's run by
the root user?