I did exactly the same sort of thing to generate the script for PerlMonks Editor. I'm now in the process of refactoring the code with the intent of adding a suite of related, somewhat more general purpose, modules to CPAN and include a two line script as an example that provides the equivalent of the current PMEdit.pl (see What to do with PMEdit? for related discussion).
I don't know what your context or distribution target is, but distributing the modules probably makes it easier to maintain, test and reuse the code.
In reply to Re: Cat'ing perl modules into single file script
by GrandFather
in thread Cat'ing perl modules into single file script
by Smitty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |