From: David Corbin Date: 2003-08-24T07:26:26+09:00 Subject: Re: Ruby & Perl On Saturday 23 August 2003 17:00, Mark Wilson wrote: > On Saturday, August 23, 2003, at 04:16 PM, David Corbin wrote: > > Has anyone considered some way to make Perl modules callable from Ruby? > > Although I'm growing ot like Ruby quite a bit, the vast quantity of > > Perl > > Modules is a long way from being matched in Ruby. Being able to call > > them > > from Ruby would be awesome. > > > > David > > Here's an example: > > require 'shell' > Shell.def_system_command("txt2html") > text_to_html = String.new > shell = Shell.new > shell.transact do > text_to_html = (shell.txt2html("--infile", ARGV[0], > "--endpreformat_trigger_lines", "1")).to_s > end > puts text_to_html > > Save as 'txt2html.rb' > > Run 'ruby txt2html.rb infile.txt' > I'm not talking about invoke system commands, I'm talking about having a system for invoking perl librarys/methods/objects/methods, getting back ruby-accessible objects. > Regards, > > Mark