Perl code in RUBY

A

AD_guru

hi,

can any one tell me how any one can use perl code in ruby language.. or
is it possible??

well i m new in ruby.. and i hav aome code written in perl that i do
not want to change but i need to run all the stuff in ruby, but cant
find a way to do that....

well thanx in advance...
 
R

Robert Klemme

AD_guru said:
hi,

can any one tell me how any one can use perl code in ruby language..
or is it possible??

No other than invoking the perl interpreter as an external process. There
have been some attempts of automated conversion. I do not know the exact
status of them but I believe there is nothing production ready.
well i m new in ruby.. and i hav aome code written in perl that i do
not want to change but i need to run all the stuff in ruby, but cant
find a way to do that....

If you have loads of code that you do not want to migrate or cannot migrate
then the best is to still keep doing things in Perl. After all, what's the
point in having Ruby if 90% of your code is Perl anyway? Then it's cleaner
and easier to write the remaining 10% in Perl, too.

If you can isolate some parts that can be rewritten in Ruby piece by piece
then the approach with the external perl interpreter may make sense but
it'll be clumsy - at least for the transition period.

Kind regards

robert
 
A

AD_guru

thanx a lot...

may be i will shift to perl or make external call.. any way thanx a
lot...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Trouble with code 2
Code help please 4
Age gate code 0
Python code problem 2
I couldn't run any program in VS code!! 3
Help in fixing this code 8
Advent of Code 2023 3
Problem with code 2

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,676
Latest member
sjarada

Latest Threads

Top