Click here to get back home

Client Program not Receiving Message from Server

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Client Program not Receiving Message from Server deadpickle 01-18-2008
Get Chitika Premium
Posted by deadpickle on January 18, 2008, 12:27 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by deadpickle on January 18, 2008, 7:42 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
stalling server client program January 5, 2007, 8:37 pm
Partial e-mail body receiving by SMTP Server? May 26, 2008, 4:28 am
Server/client over a network September 19, 2006, 1:54 pm
gluing client and server March 13, 2007, 10:30 am
SOAP server & client problem November 8, 2007, 1:10 pm
SOAP server & client problem November 8, 2007, 3:05 pm
Client-Server Communication in Perl CGI November 14, 2008, 7:57 am
Perl server, SOAP and .NET client, how to communicate August 19, 2005, 3:26 pm
TCP client/server speaking proprietary protocol May 16, 2006, 8:38 pm
transfering a string from client to server without deadlock? May 17, 2006, 6:39 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap