Click here to get back home

www.hetong168.com Chinese biggest contract website first A2A gateway

 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
www.hetong168.com Chinese biggest contract website first A2A gateway 003815 10-17-2005
Get Chitika Premium
Posted by 003815 on October 17, 2005, 11:02 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
the dealer whom the biggest electronics wholesale, in the elec-bc December 28, 2007, 11:03 am
Ciscotutorials.info is your gateway to the best October 10, 2007, 4:02 am
Selecting Default Gateway April 18, 2008, 1:45 pm
Secure VPN Gateway - a Perl solution January 2, 2007, 7:31 pm
http://search.cpan.org/ getting 502 Bad Gateway error September 18, 2005, 1:50 pm
AWLP turns your PC into web-managed wireless access gateway January 4, 2005, 3:51 am
print chinese char September 9, 2005, 9:05 am
how to read Chinese filenames? June 5, 2006, 5:49 pm
I use TK to show some chinese web page, I get nothing,why? November 25, 2006, 9:00 pm
Looking for Chinese->English Translation Script September 13, 2005, 8:29 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap