It is because of
simplicity.
IO::Socket provides you with low level protocol. Basically you can just read and write strings from a stream. You will have to roll your own high level protocol for communication between game server and client. You mentioned that you want several different clients. It means that unless they are all written in Perl they all will need their own libraries for handling of this high level protocol.
With SOAP you already have high level protocol which is portable across different OSes and programming languages. Basically it a protocol which allows you to do RPC (function and method calls). SOAP::Lite is very convinient librariy which makes it completly transparent in Perl. See yourself. Read SOAP::Lite Guide.
As for perfomance SOAP::Lite will be probably slower than your own protocol over IO::Socket. But it acceptable price in most cases unless you have very strict perfomance requirements.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.