<?xml version="1.0" encoding="windows-1252"?>
<node id="1144" title="perlman:lib:ops" created="1999-12-22 19:49:31" updated="2005-08-10 15:51:16">
<type id="119">
perlfunc</type>
<author id="113">
root</author>
<data>
<field name="doctext">
</field>
<field name="name">

&lt;P&gt;
ops - Perl pragma to restrict unsafe operations when compiling

&lt;P&gt;
&lt;HR&gt;
</field>
<field name="synopsis">

&lt;P&gt;
&lt;PRE&gt;  perl -Mops=:default ...    # only allow reasonably safe operations
&lt;/PRE&gt;
&lt;P&gt;
&lt;PRE&gt;  perl -M-ops=system ...     # disable the 'system' opcode
&lt;/PRE&gt;
&lt;P&gt;
&lt;HR&gt;
</field>
<field name="description">

&lt;P&gt;
Since the ops pragma currently has an irreversable global effect, it is
only of significant practical use with the &lt;CODE&gt;-M&lt;/CODE&gt; option on the command line.

&lt;P&gt;
See the [perlman:lib:Opcode|Opcode] module for information about opcodes, optags, opmasks and important
information about safety.

&lt;P&gt;
&lt;HR&gt;
&lt;H1&gt;&lt;A NAME="SEE_ALSO"&gt;SEE ALSO&lt;/A&gt;&lt;/H1&gt;
&lt;P&gt;

&lt;CODE&gt;Opcode(3),&lt;/CODE&gt; 
&lt;CODE&gt;Safe(3),&lt;/CODE&gt; 
&lt;CODE&gt;perlrun(3)&lt;/CODE&gt;

&lt;HR&gt;
</field>
</data>
</node>
