in reply to Using Perl subroutines in a Perl2Exe exe file
I haven't used Perl2Exe, but I suspect this won't be possible. bar.pm as you describe it is intended to be a resource, whereas bar.exe would be a program.
The only way to accomplish this that I could think of would be to write another script that uses Bar.pm, and provides a command-line interface so you could perl2exe the new script, and make system calls with command-line arguments in foo.pl.
Frankly, I'd suspect that perl2exe won't provide much code protection anyway. Many of these 'create an exe out of a scripting language' programs just give you back an executable perl interpreter that's designed to look inside it's own file for the perl code to execute. (which means that anyone with an editor can open the exe, page through the binary garbage, and find your code at the end) If your desire is simply to protect your source, you'll be better off finding a tool specifically for that.
Xaositect - Whitepages.com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using Perl subroutines in a Perl2Exe exe file
by tlemons (Novice) on Jun 29, 2005 at 20:15 UTC | |
by waswas-fng (Curate) on Jun 29, 2005 at 20:27 UTC | |
by Xaositect (Friar) on Jun 30, 2005 at 18:00 UTC |