[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Using Perl modules

Jan Luehr

9/28/2008 9:08:00 PM

Hello,

since there are a lot of perl modules out there, I wonder if someone has
tried to use perl modules / functions in Ruby recently.
Googling reveals some rather outdated approaches (eg
http://www.yoshidam.net/p...) but nothing serious.
Do you know any?

Thanks in advance,
Keep smiling
yanosz
11 Answers

Eric Hodel

9/29/2008 2:45:00 AM

0

On Sep 28, 2008, at 14:09 PM, Jan Luehr wrote:
> Hello,
>
> since there are a lot of perl modules out there, I wonder if someone
> has
> tried to use perl modules / functions in Ruby recently.
> Googling reveals some rather outdated approaches (eg
> http://www.yoshidam.net/p...) but nothing serious.
> Do you know any?

Last we tried this (with an early 1.8, IIRC) it worked out of the
box. What makes you say it is outdated?


Robert Klemme

9/29/2008 9:24:00 AM

0

2008/9/28 Jan Luehr <jluehr@gmx.net>:
> since there are a lot of perl modules out there, I wonder if someone has
> tried to use perl modules / functions in Ruby recently.
> Googling reveals some rather outdated approaches (eg
> http://www.yoshidam.net/p...) but nothing serious.
> Do you know any?

My impression is that generally Ruby folks rather tend to rewrite Perl
modules because Ruby code is usually significantly more compact where
Perl's OO is close to nonexistent...

> Keep smiling

Will try. ;-)

Cheers

robert


--
remember.guy do |as, often| as.you_can - without end

Ryan Davis

9/29/2008 10:05:00 AM

0


On Sep 28, 2008, at 14:09 , Jan Luehr wrote:

> since there are a lot of perl modules out there, I wonder if someone
> has
> tried to use perl modules / functions in Ruby recently.
> Googling reveals some rather outdated approaches (eg
> http://www.yoshidam.net/p...) but nothing serious.

maybe you should try it before you declare it outdated and "nothing
serious". I was able to fire up LWP::Simple, fetch a page, and do
stuff with it. That seems like a lot more than "nothing serious" to me.


Jan Luehr

9/29/2008 2:32:00 PM

0

Ryan Davis wrote:

>
> On Sep 28, 2008, at 14:09 , Jan Luehr wrote:
>
>> since there are a lot of perl modules out there, I wonder if someone
>> has
>> tried to use perl modules / functions in Ruby recently.
>> Googling reveals some rather outdated approaches (eg
>> http://www.yoshidam.net/p...) but nothing serious.
>
> maybe you should try it before you declare it outdated and "nothing
> serious". I was able to fire up LWP::Simple, fetch a page, and do
> stuff with it. That seems like a lot more than "nothing serious" to me.

Maybe nothing serious is a bit harsh - sorry about that.
I'm looking for a reliable way to use perl code with ruby.
Yoshida Masato's library seems to be unmaintained since 2001/2002, never had
a stable (1.0) release, was tested on linux 2.0 and is requiring perl 5.6
while I'm using 5.10
Do you have any experiences apart from using LWP::Simple? Do you know
projects or software currently using this software?

Thanks,
Keep smiling
yanosz

Jan Luehr

9/29/2008 2:33:00 PM

0

Ryan Davis wrote:

>
> On Sep 28, 2008, at 14:09 , Jan Luehr wrote:
>
>> since there are a lot of perl modules out there, I wonder if someone
>> has
>> tried to use perl modules / functions in Ruby recently.
>> Googling reveals some rather outdated approaches (eg
>> http://www.yoshidam.net/p...) but nothing serious.
>
> maybe you should try it before you declare it outdated and "nothing
> serious". I was able to fire up LWP::Simple, fetch a page, and do
> stuff with it. That seems like a lot more than "nothing serious" to me.

Maybe nothing serious is a bit harsh - sorry about that.
I'm looking for a reliable way to use perl code with ruby.
Yoshida Masato's library seems to be unmaintained since 2001/2002, never had
a stable (1.0) release, was tested on linux 2.0 and is requiring perl 5.6
while I'm using 5.10
Do you have any experiences apart from using LWP::Simple? Do you know
projects or software currently using this libarary?

Thanks,
Keep smiling
yanosz

Jan Luehr

9/29/2008 2:34:00 PM

0

Hello,

Eric Hodel wrote:

> On Sep 28, 2008, at 14:09 PM, Jan Luehr wrote:
>> Hello,
>>
>> since there are a lot of perl modules out there, I wonder if someone
>> has
>> tried to use perl modules / functions in Ruby recently.
>> Googling reveals some rather outdated approaches (eg
>> http://www.yoshidam.net/p...) but nothing serious.
>> Do you know any?
>
> Last we tried this (with an early 1.8, IIRC) it worked out of the
> box. What makes you say it is outdated?

Well, last release was in 2001 and it's requiring perl 5.6 while I'm using
perl 5.10.

Keep smiling
yanosz

Mark Thomas

9/29/2008 2:37:00 PM

0

On Sep 28, 5:08 pm, Jan Luehr <jlu...@gmx.net> wrote:
> Hello,
>
> since there are a lot of perl modules out there, I wonder if someone has
> tried to use perl modules / functions in Ruby recently.

Do you have one in mind? Many of the most useful perl modules are
available in some form for Ruby as well, they're just harder to find.

-- Mark.

Jan Luehr

9/29/2008 3:48:00 PM

0

Hello,

Mark Thomas wrote:

> On Sep 28, 5:08 pm, Jan Luehr <jlu...@gmx.net> wrote:
>> Hello,
>>
>> since there are a lot of perl modules out there, I wonder if someone has
>> tried to use perl modules / functions in Ruby recently.
>
> Do you have one in mind? Many of the most useful perl modules are
> available in some form for Ruby as well, they're just harder to find.

I thought of using smbldap-tools as a high-level api for account management.

Keep smiling
yanosz

Mark Thomas

9/29/2008 5:46:00 PM

0

On Sep 29, 11:48 am, Jan Luehr <jlu...@gmx.net> wrote:
> Hello,
>
> Mark Thomas wrote:
> > On Sep 28, 5:08 pm, Jan Luehr <jlu...@gmx.net> wrote:
> >> Hello,
>
> >> since there are a lot of perl modules out there, I wonder if someone has
> >> tried to use perl modules / functions in Ruby recently.
>
> > Do you have one in mind? Many of the most useful perl modules are
> > available in some form for Ruby as well, they're just harder to find.
>
> I thought of using smbldap-tools as a high-level api for account management.
>
> Keep smiling
> yanosz

Well, smbldap-tools is invoked via a set of command-line programs, so
you can use them as-is from Ruby or create a more Rubyesque API by
wrapping the commands with Ruby classes. This is probably the easiest
thing to do.

There's also a Ruby LDAP interface (http://ruby-ldap.source...)
that may help you if you want to roll your own.

-- Mark.

Martin DeMello

9/29/2008 6:03:00 PM

0

On Mon, Sep 29, 2008 at 8:50 AM, Jan Luehr <jluehr@gmx.net> wrote:
>
> I thought of using smbldap-tools as a high-level api for account management.

I've done this quite happily by calling the various smbldap
shellscripts via backticks.

martin