Click here to get back home

Rlogin client?

 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
Rlogin client? Jean-Louis Leroy 11-03-2004
Posted by Jean-Louis Leroy on November 3, 2004, 5:31 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
pop3 cgi client September 8, 2005, 3:55 pm
Net::Blacklist::Client use? March 18, 2008, 2:00 pm
SOAP Http Client October 1, 2004, 3:50 am
how *.cgi file can get the parameters from client? November 20, 2004, 8:08 pm
Writing SMPP client December 15, 2005, 8:32 am
web browser to ftp client script March 15, 2006, 7:43 pm
Server/client over a network September 19, 2006, 1:54 pm
gluing client and server March 13, 2007, 10:30 am
A Gtk2 IRC Chat Client February 11, 2008, 3:13 pm
modules for nntp client April 14, 2008, 1:25 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap