From: Brian Candler Date: 2003-05-13T22:58:55+09:00 Subject: Ruby<->Perl and syck-0.25 problem Any syck users out there? I have an urgent need to get some Perl<->Ruby communication and I thought YAML RPC would be a good way to do this, now there is a fast YAML parser for Ruby (this assumes there is a decent YAML implementation for Perl of course, which syck doesn't support) However I've tried installing syck-0.25 and it seems to have some bits missing: irb(main):002:0> require 'yaml' NameError: undefined method `add_ruby_type' for YAML:Module from /usr/local/lib/ruby/site_ruby/1.6/yaml/rubytypes.rb:26 from /usr/local/lib/ruby/site_ruby/1.6/yaml.rb:19:in `require' from /usr/local/lib/ruby/site_ruby/1.6/yaml.rb:19 from (irb):2:in `require' from (irb):2 Grepping the source I can see where add_ruby_type and add_builtin_type are used, but not where they are defined. Am I missing some magic source file? Also, anybody have any other smart ideas about how to exchange a tree of objects between Ruby and Perl? SOAP is too slow, and XMLRPC doesn't keep the inter-object references properly (in fact I think it dies completely when given a circular reference). A simple request-response model is all I need, and the two bits are on the same machine, so no need to go via a socket if there's a direct way of integrating them. Cheers... Brian.