in reply to Can I use Archive::Zip to create a self-extracting exe for Windows?

I went to the Archive::Zip docs, did a find for "self" and found this snippet under the writeToFileHandle() method:
... this could be used (for instance) for making self-extracting archives. However, this only works reliably when writing to a real file (as opposed to STDOUT or some other possible non-file). See examples/selfex.pl for how to write a self-extracting archive.
direct link: http://search.cpan.org/src/SMPETERS/Archive-Zip-1.16/examples/selfex.pl
  • Comment on Re: Can I use Archive::Zip to create a self-extracting exe for Windows?
  • Download Code

Replies are listed 'Best First'.
Re^2: Can I use Archive::Zip to create a self-extracting exe for Windows?
by inman (Curate) on Aug 26, 2005 at 07:49 UTC
    If you use PAR to package your resulting script/data then you can distribute the self extracting archive to non-perl users.