arc_of_descent has asked for the wisdom of the Perl Monks concerning the following question:
I was just wondering whether there is any perl module out there which would enable a perl process to share its data structures to other perl processes which might need it?
This is how I would like to use it:
In script whose data structures I want to share
use Sharable; # %contracts is one data structure I would like to give away my %contracts = ( 'VLAN1' => 45, 'VLAN2' => 46, 'VLAN3' => 78, ); Sharable::give_away(%contracts);
In script where I would like data from elsewhere
use Sharable; # $pid is PID of process which is sharing data my $received_stuff = Sharable::get_data($pid); # $received_stuff will be similar to %contracts
I hope i've made myself clear. In short I'm talking about a IPC mechanism to share perl data structures. A very high level one, with a maximum of 3 method/subroutine calls in each process to get stuff done.
So. huh. is there..?
I would dearly like to get one suited to my taste, which I guess I can tailor it myself once I get some framework modules.
Thanks for reading.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: On Sharing perl data structures
by hardburn (Abbot) on Sep 08, 2004 at 20:42 UTC | |
|
Re: On Sharing perl data structures
by BUU (Prior) on Sep 08, 2004 at 23:39 UTC | |
by arc_of_descent (Hermit) on Sep 09, 2004 at 15:12 UTC | |
|
Re: On Sharing perl data structures
by valdez (Monsignor) on Sep 08, 2004 at 22:43 UTC |