[erlang-questions] how: perl <-> erlang

fess fess-erlang@REDACTED
Tue Mar 4 18:33:33 CET 2008


On Mar 3, 2008, at 3:54 PM, jm wrote:

> What is the best approach for communicating between perl and  
> erlang? The
> plan is to write a custom module or a hook function to send/retrieve
> information between radiator ( a perl based radius server) and  
> something
>   written in erlang.

A very simple approach is to use an erlang port. [ the stdin/stdout  
variety. ]

basically look at erlang:open_port and  erlang:port_command

here's a good walkthrough talking to a python program:

http://www.trapexit.org/Writing_an_Erlang_Port_using_OTP_Principles

As you can tell from the other responses there are much more complicated
routes you can go as well, if they suite your purpose.

--fess




More information about the erlang-questions mailing list