writes:
> Hi
> I'm new in Perl language...
>
> I have an important question: Perl and C can communicate ?
>
> My problem is the following: I have Perl script (client) that could
> receive information ( via UDP connection) from a C program ( the
> server).
> Is it this possible? there are a method for client e server to
> communicate??
Yes it's possible and all the methods you'd need are in the perl base
language itself, though you may want to check out IO::Socket and friends
on search.cpan.org for a slightly easier to use interface.
The language that the server is written in or even the machine that it's
running on shouldn't make any difference. That's one of the points of
using sockets in the first place. If the data you're sending is in some
very complex binary format (instead of line-delimited text, for
instance) things could get a little more complicated - though it's still
very much possible to deal with that.
This seems like as good a place as any to start:
http://perldoc.perl.org/perlipc.html...-Communication
> Thanks in advance
> Simo
Cheers,
Joost.