February 2012
Intermediate to advanced
1184 pages
37h 17m
English
perl –M–ops=system ... # disable the "system" opcode
The ops pragma disables certain opcodes, with irreversible global effect.
The Perl interpreter always compiles Perl source into an internal
representation of opcodes before it runs it. By default, there are no
restrictions on which opcodes Perl will run. Disabling opcodes restricts
what Perl will compile; any code that would use a disable opcode causes a
compilation error. Don’t think that this provides robust security, though.
The Opcode module has more details about opcodes. Also see the
Safe module (Chapter 20), which might be a
better choice for you.
Read now
Unlock full access