Click here to get back home

POE::Component::IRC::State and nick changes

 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
POE::Component::IRC::State and nick changes Kurt M. Weber 11-09-2007
Posted by Kurt M. Weber on November 9, 2007, 6: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

Similar ThreadsPosted
POE-Component-IRC & whois January 2, 2007, 6:48 pm
Calling a VB component September 5, 2007, 7:23 am
COM+ component call with Perl April 14, 2005, 2:02 pm
poe::component::server::syslog November 1, 2007, 1:33 pm
Active State July 8, 2004, 10:51 am
what is Perl state of the art? February 17, 2005, 6:35 am
state of Erlang? May 7, 2008, 9:29 am
Active State Perl July 26, 2005, 7:41 pm
regexp finite state machine? March 8, 2005, 8:21 pm
new "state" variables... nest properly?? December 27, 2007, 5:14 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap