Thanks for the links everyone - will check them out soon.
Tobyink
"If you were using a server environment with some persistence for Perl processes (e.g. mod_perl) instead of CGI, then this would be somewhat easier."

I would be interested in what you have to say about using 'mod_perl':
Ive toyed with different programing languages (both interpreted and complied), but dont have a strong backround with apache.

Heres alittle more info about my server. When the time comes i need something or try something new, i enable it - dont know if this is alitle/too much info or not enough.

Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4.17 with Suhosin-Patch mod_python/3.3.1 Python/2.6.5 mod_ssl/2.2.14 OpenSSL/0.9.8k mod_wsgi/2.8 mod_perl/2.0.4 Perl/v5.10.1 configured --

$ apache2ctl -M Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_prefork_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) dav_module (shared) dav_fs_module (shared) dav_svn_module (shared) authz_svn_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) mime_module (shared) negotiation_module (shared) -> perl_module (shared) php5_module (shared) python_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) ssl_module (shared) status_module (shared) wsgi_module (shared) Syntax OK
Some info displayed under '/perl-status' ...
( /etc/apache2/conf.d/perl-status ) <Location /perl-status> SetHandler perl-script PerlHandler +Apache2::Status </Location> ModPerl::Const 2.000004 Wed Feb 3 13:16:37 2010 /usr/lib/perl +5/ModPerl/Const.pm ModPerl::Global 2.000004 Wed Feb 3 13:16:21 2010 /usr/lib/per +l5/ModPerl/Global.pm ModPerl::Registry 1.99 Wed Feb 3 13:16:48 2010 /usr/lib/perl5 +/ModPerl/Registry.pm ModPerl::RegistryCooker 1.99 Wed Feb 3 13:16:46 2010 /usr/lib +/perl5/ModPerl/RegistryCooker.pm ModPerl::Util 2.000004 Wed Feb 3 13:16:45 2010 /usr/lib/perl5 +/ModPerl/Util.pm mod_perl2 2.000004 Thu Apr 17 02:07:31 2008 /usr/lib/perl5/mo +d_perl2.pm
This is all for a local server, security is not a big issue (server is not open to public), but i would like to practice safty.

Thanks again all.
_

In reply to Re^2: 'print' to cgi like in terminal ("real-time") ? by iMisspell
in thread 'print' to cgi like in terminal ("real-time") ? by iMisspell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.