Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: how to control segmented messages in TCP chat client

by Athanasius (Archbishop)
on Aug 24, 2014 at 03:39 UTC ( [id://1098442]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-19 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found