-------------------------------------
I tend to use CGI::Application to write my stuff. Under the doc root, the CGIs look like this:
#!/usr/local/bin/perl
use lib "/Application_Perl_Modules";
use History;
my $webapp = History->new();
$webapp->run();
where "History" is in a file History.pm in the directory /Application_Perl_Modules well outside of the docroot. This makes it impossible for the webserver to display the guts of the CGI source code if the .htaccess controls on the CGI directory fail (for example). You can use this trick without using CGI::Application too. Also note this structure allows you to "reuse" code by having many stubs point to the same module, providing an advantage in code maintenence.
Changing subjects, to answer your other question, paragraph breaks are provided by using standard HTML tags. Read the help ....
Welcome to the monastery. IMHO most useful site on the internet.
Cheers
Nothing is too wonderful to be true
-- Michael Faraday
|