Dec 18, 2011, 8:15 AM
Post #2 of 4
Re: [elogateumsato] Embedding files inside perl? creating a "perl installer"
[In reply to]
here is the scenerio- I have a software that installs its own version of perl onto a machine so i have most perl functionality.IMO, that a bad approach. What makes you think your install will be more functional than one from someone else? It may meet all of your requirements, but I can assure you that it won't meet many others if they have other apps that use Perl.
I am not allowed to take any outside resources and put them on this machine (download an installer... etc)That's somewhat reasonable, but vague. If your app installs perl, then that would be an outside resource.
I would like to write a perl script that would basically act as an installer.Yes, that is often done in custom Perl apps and is usually written as a (Tk or similar framework) gui and "compiled" as a standalone executable.
My question is, I would like to keep the "installer" down to 1 file so I was wondering how I could "embed" a pdf (or any other file) into a perl script that way it can extract the pdf into the right directory and keep the same formatting.The simple answer is "no", but you can have the installer, once it has installed perl, create the pdf.