2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <title>ops - Perl pragma to restrict unsafe operations when compiling
</title>
6 <meta http-equiv=
"content-type" content=
"text/html; charset=utf-8" />
7 <link rev=
"made" href=
"mailto:" />
10 <body style=
"background-color: white">
11 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
12 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
13 <big><strong><span class=
"block"> ops - Perl pragma to restrict unsafe operations when compiling
</span></strong></big>
17 <p><a name=
"__index__"></a></p>
22 <li><a href=
"#name">NAME
</a></li>
23 <li><a href=
"#synopsis">SYNOPSIS
</a></li>
24 <li><a href=
"#description">DESCRIPTION
</a></li>
25 <li><a href=
"#see_also">SEE ALSO
</a></li>
32 <h1><a name=
"name">NAME
</a></h1>
33 <p>ops - Perl pragma to restrict unsafe operations when compiling
</p>
37 <h1><a name=
"synopsis">SYNOPSIS
</a></h1>
39 perl -Mops=:default ... # only allow reasonably safe operations
</pre>
41 perl -M-ops=system ... # disable the 'system' opcode
</pre>
45 <h1><a name=
"description">DESCRIPTION
</a></h1>
46 <p>Since the ops pragma currently has an irreversible global effect, it is
47 only of significant practical use with the
<code>-M
</code> option on the command line.
</p>
48 <p>See the
<a href=
"file://C|\msysgit\mingw\html/lib/Opcode.html">the Opcode manpage
</a> module for information about opcodes, optags, opmasks
49 and important information about safety.
</p>
53 <h1><a name=
"see_also">SEE ALSO
</a></h1>
54 <p>Opcode(
3), Safe(
3),
<code>perlrun(
3)
</code></p>
55 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
56 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
57 <big><strong><span class=
"block"> ops - Perl pragma to restrict unsafe operations when compiling
</span></strong></big>