From: Mark Wilson Date: 2003-08-24T06:00:51+09:00 Subject: Re: Ruby & Perl 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' Regards, Mark