karden has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: batch processing via single open
by daxim (Curate) on Jul 15, 2007 at 23:22 UTC | |
by karden (Novice) on Jul 15, 2007 at 23:49 UTC | |
by daxim (Curate) on Jul 16, 2007 at 00:11 UTC | |
|
Re: batch processing via single open
by shmem (Chancellor) on Jul 16, 2007 at 07:43 UTC | |
by karden (Novice) on Jul 16, 2007 at 17:41 UTC | |
by shmem (Chancellor) on Jul 16, 2007 at 21:50 UTC | |
by karden (Novice) on Jul 16, 2007 at 22:35 UTC | |
by shmem (Chancellor) on Jul 17, 2007 at 17:01 UTC | |
|