Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.124 reChapter 8
Standard Modules
Next: 8.126 SDBM_File
 

8.125 Safe

Creates compartments for evaluating untrusted Perl code. Each compartment has an associated operator mask for excluding particular Perl operators from the compartment. See the Opcode module for more information on operators and operator masks. The default mask is applied during compilation to prevent all operations that give access to the system. Safe provides the following methods:

The following subroutines are available for export by Safe. The operator names can be found in the array op_name in the file opcode.h in the Perl distribution.


Previous: 8.124 rePerl in a NutshellNext: 8.126 SDBM_File
8.124 reBook Index8.126 SDBM_File

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.