Until we have Ruby on Parrot (Cardinal) I don't know that there will be
any satisfactory ways of acheiving what you're trying to do.
What about using SOAP, XML-RPC or maybe even YAML as a liason between your
Ruby objects and your Perl objects?
Phil
I'm sure that something like that is doable, but I was thinking that something
might be done by embedding the perl engine in ruby. Then, you'd have a
method for registering perl modules, that would return an ruby object with
wrapper methods for perl functions. I'm a little rusty on how Perl "objects"
are created, but I figure one can certainly do this: when I call wrapped Perl
method, the return object is analyzed - if it's blessed, a new class is
created. Then, if its a hash or list, for every "nested object", the same
logic is applied.
There very well could be fundamental flaws with this approach, but my instinct
says that we could open up a large class of functionality in this manner, and
make it's use almost transparent to the end-user (i.e., it still looks like
the programmer is using Ruby objects).
David