From: Robert Klemme Date: 2009-02-24T23:33:27+09:00 Subject: Re: Calling perl function in ruby 2009/2/24 Loga Ganesan : > Below code is used for calling c function in ruby. > Likewise, instead of c I have to write a perl function and should call > it? Additionally to what Brian recommended: did you check whether there is another option? Maybe there is a Ruby implementation of the Perl code you need. IMHO generally the benefits of embedding one scripting language in another are pretty low so I'd rather either use a Ruby implementation of the code you need or do as Brian suggested and keep the Perl code in a separate process which you then call via fork, popen or whatever means is appropriate. Kind regards robert -- remember.guy do |as, often| as.you_can - without end