Is there any way to convert a perl program to autoexecutable or something like that to run them on different machines?(like *.exe files)
You could use PAR, for example, but that won't make a portable executable!
For information on portability, see perlport
Paul | [reply] |
| [reply] |
take a look at perlcc and perlcompile, it helps you to "generate executables from Perl programs" | [reply] |
Is there any way to convert a perl program to autoexecutable or something like that to run them on different machines?
Yes, although I'm not going to go into details. It usually requires modifying your compiler, but it is possible to generate binaries that will run on different platforms. The trick involves in having the different binaries (for each platform) in one file, and to very early on in the program loader, jump to the right binary. While I won't know whether this will work between any two platforms, I know from experience, it's possible between some.
But I don't think you really want to do that. It's highly non-trivial and will take a lot of work to get it done.
| [reply] |