Compiling Perl
Adam’s comments on a recent script that I wrote lead me to ask: does anyone know of a way to compile a Perl script so that one doesn’t need to ship it with an interpreter or a set of libraries? You’d need to compile out every function call to the Perl interpreter, and every call to the libraries. Is this difficult? I’d be surprised if this problem hadn’t already been solved in full generality for any interpreted language, but maybe that’s taking it too far. I’d certainly be surprised if the problem hadn’t been solved in the special case of Perl. Does anyone know how to do something like this?