I often use perlapp (ActiveState Perl Dev Kit) to complile perl scripts and have often ran into the issue of misplacing the original source code and not being able to figure out how to get the source out of the compiled file.
Is there any way to print out the source code of the running script, from within the script? I assume this would have to occur at compile time...
It would be really neat if I could just use a module (like we do with warnings and strict) and pass a command-line argument to the script to have it dump the source code.
Does such a module exist, or is it even possible?
In reply to Print perl source code in compiled script... by bcarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |