in reply to how to control segmented messages in TCP chat client

Hello thanos1983,

This is not an answer to your question, just an observation on one part of the code.

In Client.pl there is a subroutine sub receive which references $_[0], i.e. the first argument passed into the sub. This subroutine is called three times within Client.pl, each time like this:

$receive_msg = receive()

with no arguments passed in. So $_[0] is in all cases uninitialised, and the sub call accomplishes nothing.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: how to control segmented messages in TCP chat client
by thanos1983 (Parson) on Aug 24, 2014 at 11:01 UTC

    Hello Athanasius,

    Thank you for the observation, I was modifying the code earlier from a previous version and this part I forgot to change. :D

    But maybe is also the source of some other problems that I had. You gave me food for thought. I need to experiment more with code, maybe I am able to figure out the problem.

    Again thank you for your time and effort to assist me.

    Seeking for Perl wisdom...on the process of learning...not there...yet!