3 use Opcode
qw(opmask_add opset invert_opset);
7 # Not that unimport is the prefered form since import's don't
8 # accumulate well owing to the 'only ever add opmask' rule.
9 # E.g., perl -Mops=:set1 -Mops=:setb is unlikely to do as expected.
10 opmask_add
(invert_opset opset
(@_)) if @_;
15 opmask_add
(opset
(@_)) if @_;
24 ops - Perl pragma to restrict unsafe operations when compiling
28 perl -Mops=:default ... # only allow reasonably safe operations
30 perl -M-ops=system ... # disable the 'system' opcode
34 Since the ops pragma currently has an irreversible global effect, it is
35 only of significant practical use with the C<-M> option on the command line.
37 See the L<Opcode> module for information about opcodes, optags, opmasks
38 and important information about safety.
42 Opcode(3), Safe(3), perlrun(3)