TAGS :Viewed: 16 - Published at: a few seconds ago

[ Perl's thaw() implementation in Java ]

I have two applications running concurrently: one in Perl, and one in Java. The Perl app relies on using nfreeze to store objects in the database. If my Java app has access to that database, how can I "thaw" that object inside of the Java application?

I don't need to be able to write to that object, just read it and use it in the Java app.

Answer 1


Storable is specifically designed for Perl data structures. It hasn't been ported to other languages.

Instead of (or in addition to) using Storable, use XML, JSON or YAML (in no particular order).

It's that's not possible, your Java program is going to have to call a Perl script to translate the data into something more convenient.