Using beanstalkd and putting a job in tube/queue that contains a hash that is YAML::Syck encoded (with $YAML::Syck::ImplicitTyping = 1).
I need some syntax help on the Java end, as to how to decode handle that string pulled from the beanstalkd job. The Perl hash ends up being encoded as a YAML string that looks like this:
--- NameFirst
--- Mike
--- NameLast
--- Smith
--- DOB
--- 07/07/2007
These YAML records (as above) are only processed one at a time. So, given that string above, how in the world do I get JYaml to read that in, and decode into an object class with methods like:
Customer.NameFirst
Customer.NameLast
Customer.DOB
I suspect you are doing Dump(%hash) where you should be doing Dump(\%hash). The former dumps an independent list of alternating keys and values; the latter dumps the hash with each value being associated with a key, like: