Comment Hiding Perl source in an executable (Score 1) 51
One way this has been done successfully is to embed the perl source, encrypted, in a small C program which feeds it to a perl interpretter (statically linked against the binary) at run time.
The C program can then check a licence key, decrypt the embedded blob of Perl in memory, and eval the perl code.
The code to do this isn't that complex (see perlembed)
For this to work on Windows, you may need to replace any XS based Perl librarys you ship with it with pure Perl.
Any constants you use for socket based stuff, and sysread/syswrite you will need to find their Windows equivalents - I'm afraid I can't help you much there.
This may be something like what perl2exe does, although they may use the Bytecode interface or the modern equivalent of undump.
The C program can then check a licence key, decrypt the embedded blob of Perl in memory, and eval the perl code.
The code to do this isn't that complex (see perlembed)
For this to work on Windows, you may need to replace any XS based Perl librarys you ship with it with pure Perl.
Any constants you use for socket based stuff, and sysread/syswrite you will need to find their Windows equivalents - I'm afraid I can't help you much there.
This may be something like what perl2exe does, although they may use the Bytecode interface or the modern equivalent of undump.