http://www.perlmonks.org?node_id=994206


in reply to Re^2: reading C data structure
in thread reading C data structure

If you want to communicate between two running processes, that will be much harder than just writing/reading the values to a tempfile.

However, there is Convert::Binary::C, which was made for just that situation, debugging a remote process and dumping C structures from within Perl. Maybe that helps you.