mnooning has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I have a rather esoteric question.
I know an expert can always find where the code exits by tracing with a hex debugger, but I am trying to hide where I exit the code at the human readable level anyway. The code snippet below works, but not if "use Tk;" is present, which it is in a number of modules the real code invokes.
I am obviously dealing with legacy code (Tk is used. ActiveState no longer supports Tk).
Is there any other way to hide an "exit;"?
How about a "die()";
use Tk; my $etriped = 'e'. 'x'. 'i'. 't'; print "1\n"; eval ("$etriped"); print "2\n"; # Reached if "use Tk;" is present.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to hide exit and die
by golux (Chaplain) on Jan 14, 2015 at 18:43 UTC | |
by Anonymous Monk on Jan 14, 2015 at 19:14 UTC | |
|
Re: How to hide exit and die
by Corion (Patriarch) on Jan 14, 2015 at 18:07 UTC | |
by mnooning (Beadle) on Jan 14, 2015 at 19:21 UTC | |
|
Re: How to hide exit and die
by QM (Parson) on Jan 15, 2015 at 14:38 UTC |