Daniel Bush wrote:
Hi Sonia,
On 17/11/06, Sonia Hamilton <[EMAIL PROTECTED]> wrote:
I'm thinking of learning Ruby ...
Yay! Another rubyist!
One thing I can say, if you like oop, you will probably like ruby.
- is there an easy way of running Perl and
Python code/libraries from Ruby? I've googled and browsed manuals in
Dymocks Library ^H^H^H Bookshop, can't seem to find an answer.
This cropped up on the ruby talk list with regards perl in late
September -
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/217173.
Looking at the thread I'm not sure if there was a consensus -
certainly no magical wrapping utility was mentioned when I last
checked.
The only thing I can suggest at the moment is something that goes the
other direction, one of the Inline:: modules (there was a bit of a fad
relating to makeing Perl inline-embed anything a while back).
http://search.cpan.org/~neilw/Inline-Ruby-0.02/lib/Inline/Ruby.pod
The Inline::Ruby module would _seem_ to let you embed ruby code directly
in your Perl.
That _might_ be enough to get you going, but I doubt it, since I suspect
what you really want is something like
"I want to call CPAN modules natively from Ruby"
That you don't get, although as was mentioned quite a number of the
better and more venerable CPAN modules are gradually being cloned over
to gems.
To get something fairly robust I think you will need to wait for the
Parrot/Perl6 stack, which _will_ allow native cross-language calls
between Perl5/Perl6/Python/Ruby et al.
But until that is more usable, there's no good answers I'm aware of.
Adam K
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html