It's an interesting coincidence that this question was asked, because just yesterday I was wondering the same thing about an executable I created about a year ago with
perlapp, and since then lost the source code for. After googling for a short while, I was directed back to Perlmonks, where I found
this node.
Just for fun (and being just a wee bit lazy to dig into the executable), I thought I'd try for a slightly different solution. So I wrote a Perl script which would:
- Change to the temp directory holding the uncompressed files.
- Prompt the user to change the priority of the Perl process (to "High". I later tried "Realtime" for fun, but that turned out to be a mistake, as I had thought).
- Prompt the user to run the executable created by perlapp.
- At this point, I would manually change the priority of the application to Low.
- The Perl script would continuously look for files as they were unpacked from the executable, and save their contents.
I'm sorry to say this yielded no success for me; the Perl script was unable to detect any files prior to their removal, despite the application running at an extremely low priority.
I don't know if this helps with the particular question of perl2exe, as I have no direct knowledge of that tool. But if the mechanics of perl2exe are at all the same, perhaps a similar script would do a better job with intercepting the sourcefile while it's being extracted.
s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.