# Calling Perl Modules from ruby

**URL:** <https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967>\
**Category:** Ruby\
**Created:** [June 5, 2007, 2:07am UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967 "2007-06-05T02:07:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [June 5, 2007, 2:07am UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967/1 "2007-06-05T02:07:21Z")

</div>

I saw some conversation about this a few months ago, but wanted to  
revisit this.

I think the main theme of what I saw was that the perl modules should  
be rewritten into ruby.

Any better way to leverage what is already there in Perl?

I’m trying to convert what we have in Perl to Ruby, but the folks who  
maintain the perl are nervous of a re-write…let alone the time it  
would take to do it.

This is custom perl stuff. I don’t believe it is proprietary,  
however.

Thanks for any direction.

Mike B.

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [June 5, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967/2 "2007-06-05T17:08:46Z")

</div>

> I’m trying to convert what we have in Perl to Ruby, but the  
> folks who maintain the perl are nervous of a re-write…let  
> alone the time it would take to do it.
> 
> This is custom perl stuff. I don’t believe it is  
> proprietary, however.

If what you have in perl is working, why go through the hassle to  
rewrite?

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [June 6, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967/3 "2007-06-06T22:28:45Z")

</div>

there is this switch might get you started as well:

[http://code.google.com/p/ruby-perl/](http://code.google.com/p/ruby-perl/)

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [June 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967/4 "2007-06-06T19:06:10Z")

</div>

On Jun 5, 7:07 am, “Doug P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I’m trying to convert what we have inPerlto Ruby, but the  
> > folks who maintain theperlare nervous of a re-write…let  
> > alone the time it would take to do it.
> 
> > This is customperlstuff. I don’t believe it is  
> > proprietary, however.
> 
> If what you have inperlis working, why go through the hassle to  
> rewrite?

Actually what I would prefer to do is to call the perl modules  
directly from my ruby stuff. The only way I can see to do this  
currently is using a system command.

I guess I was hoping there was a way to “talk” to the perl modules  
directly. Seems like a pipe dream at the moment.

Mike B.

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [June 6, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967/5 "2007-06-06T23:34:54Z")

</div>

On Jun 6, 12:28 pm, Sean T Allen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I guess I was hoping there was a way to “talk” to the perl modules  
> > directly. Seems like a pipe dream at the moment.
> 
> > Mike B.

This looks interesting. Thanks for point it out. Have you ever used  
it yourself?

Mike B.

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [June 9, 2007, 4:40am UTC](https://www.ruby-forum.com/t/calling-perl-modules-from-ruby/105967/6 "2007-06-09T04:40:00Z")

</div>

barjunk wrote:

> > > > > I’m trying to convert what we have inPerlto Ruby, but the  
> > > > > directly from my ruby stuff. The only way I can see to do this
> 
> Mike B.

no i haven’t. we haven’t had the need to yet.
