How do I run a perl program from a perl program? I could use the back quote (grave) I suppose. I could also use "system". Is there a better way that does not create an additional process?
I have six perl programs running once a day (via cygwin cron). I would like to have a single cron job running once an hour that checks the database for the oldest task and, if it is more than 24 hours old, run it. I could also write one monster program that combines all six programs. That is a lot of superfluous "use" statements if I'm only going to be running one of the six at a time. Perhaps I could have a "switch" statement to only "require" those modules that have been determined to be necessary for the oldest task. Is this the best way? Thanks, Siegfried -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>