Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Wise Monks,
How does one pipe a complex data structure (specifically an array of hashes) from a child process to a parent process? My code is able to pipe scalars from the child to the parent with no problem; furthermore, using Storage or Data::Dumper I can pipe arrays. Unfortunately, even using these modules I am unable to serialize complex data structures AND pipe them. A few notes: Storable and Data::Dumper can serialize complex data structures, but these serialized references are unable to be piped. Additionally, I have looked at Parallel::ForkManager, and it uses Storable to serialize the data so it will not work either. I am unable to find any template for how to do this.
Thank you Monks for all your help.
Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pipe Complex Data Structure
by Athanasius (Archbishop) on Sep 05, 2012 at 07:29 UTC | |
by Anonymous Monk on Sep 06, 2012 at 14:45 UTC | |
|
Re: Pipe Complex Data Structure
by Anonymous Monk on Sep 05, 2012 at 07:40 UTC | |
|
Re: Pipe Complex Data Structure
by zentara (Cardinal) on Sep 05, 2012 at 10:35 UTC | |
|
Re: Pipe Complex Data Structure
by BrowserUk (Patriarch) on Sep 05, 2012 at 14:07 UTC | |
|
Re: Pipe Complex Data Structure
by Anonymous Monk on Sep 05, 2012 at 17:48 UTC | |
|
Re: Pipe Complex Data Structure
by Anonymous Monk on Sep 05, 2012 at 13:07 UTC |