Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: COnvert java hashmap to perl hashes

by robby_dobby (Hermit)
on Jun 17, 2015 at 05:15 UTC ( [id://1130749]=note: print w/replies, xml ) Need Help??


in reply to COnvert java hashmap to perl hashes

Hello bansalam,

Expanding on what Corion said, here's the part where you need some form of serialization since this is boils down to communication between two different (or nearly same - how you look at it) cultures.

JSON is certainly one way to serialize data between two different programs, there are others too. For example, XML, YAML and Google's protocol buffers are all valid solutions. You can even write out the Java HashMap to a text file(HashMap's toString() should help) and read from that file using perl. Of course, there are modules available on CPAN for every one of these formats. JSON, YAML and Google::ProtocolBuffers come to mind.

Pick the simplest and get to work. Have fun! :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1130749]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found