# First cut Perl to Ruby conversion?

**URL:** <https://www.ruby-forum.com/t/first-cut-perl-to-ruby-conversion/88726>\
**Category:** Ruby\
**Created:** [March 13, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/first-cut-perl-to-ruby-conversion/88726 "2007-03-13T21:17:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [March 13, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/first-cut-perl-to-ruby-conversion/88726/1 "2007-03-13T21:17:43Z")

</div>

So I have a perl script I wrote a year or three back. Not bad  
programming style, but its a pain to work with.

Question:

I know a full perl to ruby translator is hopeless, the only thing that  
can parse Perl is perl. Has anyone a “first rough cut” approximate  
perl to ruby convertor?

(It occurs to me translating bytes codes from parrot into ruby may be  
an easier way…)

John C. Phone : (64)(3) 358 6639  
Tait Electronics Fax : (64)(3) 359 4632  
PO Box 1645 Christchurch Email : removed\_email\_address@domain.invalid  
New Zealand

---

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [March 13, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/first-cut-perl-to-ruby-conversion/88726/2 "2007-03-13T22:00:49Z")

</div>

> Question:
> 
> I know a full perl to ruby translator is hopeless, the only thing that  
> can parse Perl is perl. Has anyone a “first rough cut” approximate  
> perl to ruby convertor?

Oh I’d be so happy too, if someone would have such a translator!

---

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [March 14, 2007, 3:04am UTC](https://www.ruby-forum.com/t/first-cut-perl-to-ruby-conversion/88726/3 "2007-03-14T03:04:18Z")

</div>

exec(“perl script.pl”)?

Seriously though, if it’s a pain to work with now, imagine what a  
nightmare it will be after you run it through some sort of  
translator. Why not just rewrite it in ruby?
