in reply to Re: adding a hash to a shared object
in thread adding a hash to a shared object
So let me describe the scenario (I probably should have asked for your advice about it earlier)
My perl script is used to run some kind of a pipeline. I start by reading a JSON file with a bunch of parameters in it. I then do some work - mainly building some data structures needed later and calling external programs that generate some output files I keep references to.
I usually use a subroutine for each of these steps. Each such subroutine will usually write some data to a unique place that no other subroutine writes to (i.e. a specific key in a hash) and reads data that other subroutines may have generated (when I sued an object I had a large $self with many keys).
These steps can take a good couple of minutes if done sequentially, but most of them can be run in parallel with some simple logic of dependencies that I have described in an earlier post and I now know how to handle.
What would you suggest? perhaps a simple script (no objects) with "global" shared variables?
Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: adding a hash to a shared object
by Corion (Patriarch) on Aug 11, 2010 at 11:29 UTC | |
by daverave (Scribe) on Aug 11, 2010 at 11:48 UTC | |
by Corion (Patriarch) on Aug 11, 2010 at 12:27 UTC | |
by daverave (Scribe) on Aug 11, 2010 at 12:53 UTC | |
by Corion (Patriarch) on Aug 11, 2010 at 13:03 UTC | |
|