Problems? Is your data what you think it is? | |
PerlMonks |
Re: Calling perl from CGIby betterworld (Curate) |
on Sep 07, 2008 at 09:29 UTC ( [id://709626]=note: print w/replies, xml ) | Need Help?? |
I use a script to test for modules locally, and it includes the following lines:
You can convert it into a CGI script easily. The advantage is that it does not eval() or system() anything. And it does not really load the module. Some modules start their actions when you "use" or "require" or "-M" them, even if you don't call any of their functions. For some modules, these actions are pretty severe (like Acme::Bleach...). You won't have this problem with the above code. Of course you need Class::Inspector for this.
In Section
Seekers of Perl Wisdom
|
|