Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Being able to use Perl modules is fairly unlikely, because most languages are not like Perl. You will likely be able to use (80% of) Perl modules with Kurila, a Perl fork. Perl6 (if it ever comes out) is supposed to have a Perl5 interpreter mode, but as far as I know, currenly only the Perl5 interpreted version of Perl6 is able to run Perl5 code (no surprise).

You can embed a Perl interpreter into any language that can embed C subroutines - see perlembed for how to do this. You will need a C compiler though, to compile Perl for that.

You can use other languages from Perl, by using the Inline family of modules. Most of these modules require a compiler for the other language.

There are some ways of using parts written in other languages that are specific to different operating systems. On Windows, you can transparently use any object that has an OLE interface through Win32::OLE. To write an OLE object in Perl, you have to buy the ActiveState PerlKit (I believe), but that works on Windows only. For OSX (and I believe MacOS as well), there are AppleScript events that you can issue from Perl. I'm not sure if the CamelBones library supports receiving such events as well.

The most generic ways of interfacing two programs is to either run the other code as a subprogram (see perlipc) or have one program be a webserver and use the other one to make requests to it.


In reply to Re: Interfacing Perl with other languages by Corion
in thread Interfacing Perl with other languages by MistaMuShu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-18 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found