in reply to Why is perl -MO=Deparse -f obf.txt unsafe?
No it isn't, Deparse needs to compile and BEGIN blocks are executed then.
Just try perl -c with code printing in a BEGIN block.
perlrun has more details.
> -c
> causes Perl to check the syntax of the program and then exit without executing it. Actually, it will execute andBEGIN , UNITCHECK , or CHECK blocks and any use statements: these are considered as occurring outside the execution of your program. INIT and END blocks, however, will be skipped.
Also perlmod#BEGIN%2c-UNITCHECK%2c-CHECK%2c-INIT-and-END
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is perl -MO=Deparse -f obf.txt unsafe?
by vpelss (Initiate) on Feb 06, 2016 at 19:13 UTC | |
by LanX (Saint) on Feb 06, 2016 at 19:54 UTC | |
by Anonymous Monk on Feb 06, 2016 at 19:24 UTC |