ActiveState Community

Embed an executable in Perl code... base64?

Posted by applicationbistro on 2009-07-06 18:13
OS: All / Any

Is it possible to base64 encode an executable, store the base64 data in a Perl script, then unencode/execute the executable all from within the perl script? I have done something similar with base64 encoding images and storing them as subroutines...

Example use: Take a Windows executable and wrap it with Perl code to create a custom splash screen, or exit screen, etc...