in reply to A perl sandbox?

The best sandbox would be a virtual machine.

Four options to consider here (in increasing order of cost and system resources) are User Mode Linux, Win4Lin, VMWare, and OS/390. (Yes, there is a wide range of cost here...)