I am using IPC::Open2 to interact with an external program. My perl file is executed for every document in a large collection. Each time my file is run, a new connection is made with the external program (via open2), initialization commands are sent to the program and then the connection is closed which all consume, albeit not too much, certain amount of time when aggregated.
What I am hoping for is: my file calls another file which creates (only if not created before) and returns the read/write handles with an open2 command.
Am I looking for something like PHP's require_once?
In reply to batch processing via single open by karden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |