I can understand your pain... Often it is nice to be able to just connect to an already running process, give it a keyword and get back the answer that has already been loaded. The way that would probably be easiest to do this would be with a client/server model. In essence, that is what you have with a DBI/RDBMS solution and that is what you get with a LWP/mod_perl solution.
Sometimes, a solution like that may too much overhead (maintaining your Apache, trying to maintain the database). There are a couple of solutions that you could look at to do the client server for you. There is
RPC::XML, which would give you a nice procedural interface and has the option of not using Apache at all. Another possibility is to use
Net::Server, on which you can write your own interface. It has the ability to be HUPed (restarted) which would allow for rereading of configuration files. And, if you run into a high load situation you can choose to do a Net::Server::PreFork which manages child processes in the same way that Apache would -- except that its pure Perl.
There are many options, it just depends on what you need.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.