in reply to Re: Perl Sockets question
in thread Perl Sockets question

sorry about the bit :-) I am not 100% sure about what version I am using. I am using perl version 5.8.8 if thats any help. how can I tell what version f IO::Socket I am using? If I DO put the open and close around the  print socket$ $line it just outputs empty strings which is what I was meaning byt "didnt really work" Thanks, jeremy

Replies are listed 'Best First'.
Re^3: Perl Sockets question
by redgreen (Priest) on Feb 09, 2008 at 03:41 UTC
    perl -MIO::Socket -e 'print "$IO::Socket::VERSION\n"'
      I got 1.29 returned. OK, well the interesting thing is, as per my last post, the client I Was using was less than helpful, because infact when I wrote another client using a different control, it all worked fine ! HOWEVER.....it seems to output one lot of data, then I endup with a heap of spaces (hex 20) then I get the rest of the data. i.e. one part of hte data comes out, a heap of spaces, then the last of the data. There is quite a bit of data being output tho. If I output the serial data at the same time, the data is fine. I cant figure it out. Any Idea why I would getting the extra spaces? Jeremy
        I'd suggest you test your network with more stable tools, such as nc (netcat) or telnet.

        That could save you lots of trouble ;-)