The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Getting Perl chocolate in my Ruby peanut butter

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Getting Perl chocolate in my Ruby peanut butter Posted: Oct 3, 2006 8:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Getting Perl chocolate in my Ruby peanut butter
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
Who says Ruby and Perl can't be buds? Take a look at this Perl module created by Yuichi Tateno. With it, you can talk to Ruby drb servers with Perl:
use strict;
use Inline::Ruby::dRuby::Client;
use Inline::Ruby qw/rb_iter/; # use ruby's iter

my $ruby_obj = Inline::Ruby::dRuby::Client->new('druby://localhost:10001')

ruby_obj->ruby_method();

rb_iter($ruby_obj, sub { 
   my $arg = shift; 
  return $arg * $arg; 
})->each;

# If ruby's code..
ruby_obj.each {|arg|
   return arg * arg
}

Read: Getting Perl chocolate in my Ruby peanut butter

Topic: RubyForge Subversion and CVS totals Previous Topic   Next Topic Topic: Ruport News, Issue 6

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use