in reply to Copying complete module code into a script
Thanks for the help and suggestions.
I tried the similar formats of tadman and tachyon, and that worked fine for MIME::Lite, but wouldn't quite get Text::Autoformat to load. I took a look at bikeNomad's Self-extracting Perl archives, but that didn't quite fit this situation. Zaxo, thanks, and I will make sure this applies. I tried merlyn's No excuses about not using CGI.pm, but even that wouldn't handle Text::Autoformat.
I talked to the PM for the project again, and I think I have convinced him that the "better" way to do this, since he will not ask to have modules installed properly, is to elevate the modules locally rather than internal to the script.
Even if I do get the modules elevated, I still wonder why I can't seem to get Text::Autoformat to load internally. Using merlyn's technique, I was getting these errors when run on the command line:
Missing right bracket at mimemail.cgi line 6227, at end of line syntax error at mimemail.cgi line 6227, at EOF
This confuses me, because as I check, there are no missing brackets, and line 6227 is the last line of the script. I copied modules into the script, and only removed the __END__ lines.
When trying the other method (just including the modules without the BEGIN { } blocks), the script returns nothing at all when run on the command line.
I probably shouldn't be taking too muh time with this since I will probably not need to use this method, but I am still curious. Any ideas? Thanks...
D a d d i o
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Copying complete module code into a script
by petral (Curate) on Aug 03, 2001 at 11:16 UTC |