Perl calling Perl
Posted on 2012-04-08
I am thinknig about the following:
Script1 is running continuously and doing its job: keeping track of things, logging them in memory. Script2 runs from time to time and needs to get info from Script1.
So Script2 needs to be able to call the running Script1 or call a sub or function in running Script1 and get feedback from it.
An option would be a small intermediate database but I need to install just for this small stuff a DB engine on the machine. So I will do this only if I really, really need to.
Ain't there a faster, nicer way to exchange data between 2 scripts? Is there a way to share memory between scripts? are there other way to get this functionality? ... ?