Click here to get back home

windows based network instant messenger in perl

 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
windows based network instant messenger in perl Vikram 07-24-2004
Get Chitika Premium
Posted by Vikram on July 24, 2004, 8:59 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
Windows based perl editor? August 2, 2007, 10:28 pm
Interface with Yahoo /MSN messenger using Perl September 12, 2006, 2:37 am
Instant CGI/Perl book? October 11, 2004, 2:31 pm
Perl module for "Instant Messaging" September 24, 2007, 1:05 pm
Generate HTML from a Windows Network Share November 8, 2006, 6:02 am
Is there any module to map a network drive and remove a mapped network drive in perl October 22, 2007, 8:11 am
Re: Muhammad, the Messenger of Allah March 11, 2007, 7:40 pm
Download HiYo 7.00.1579 - A free add-on for Messenger ... November 13, 2008, 1:46 pm
perl network sniffer February 25, 2005, 8:48 am
Perl Network programming May 13, 2006, 3:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap