[Gllug] Sharing hash

Tethys tet at accucard.com
Mon Apr 14 12:40:07 UTC 2003


Ian Norton writes:

>i have process that i need to fork and a hash that i want to share between the
> children...
>
>this is in perl of course :-) does anyone know of an interface into SHM that
>can deal with complex data like hashes of hashes?

No, but a trivial implementation might write the hash to a temporary
file, and pass the filename as a command line argument to the exec in
the forked child... Or even just pass the hash directly as an argument,
but that limits the complexity of data you can pass between the two.

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list