Click here to get back home

www.200836.com- Peking 2008 Olympic Games Goals: High-level Olympics with distinguishing features

 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.200836.com- Peking 2008 Olympic Games Goals: High-level Olympics with distinguishing features feiallen 12-12-2007
Get Chitika Premium
Posted by feiallen on December 12, 2007, 9:04 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
good new!Celebrate beijing2008 Olympic games.Our company low price sell shoes =25USD,Nokia N95=250USD. www.fashion-sky.com September 2, 2007, 12:28 pm
converting games.pl(cgi.pm) => games.pl (html::template) April 28, 2005, 12:31 am
$$$$$$$www.200836.com ,Ticketing Center to deal with applications December 18, 2007, 9:05 pm
$$$$$$$www.200836.com , September 2000, Sydney -- Information meeting between the IOC and the Candidate Cities. December 17, 2007, 10:15 am
using specific features in module XML::Simple December 12, 2005, 3:36 pm
Learning Typeglobs, Symbol Tables and the More Obscure Features? July 4, 2006, 2:09 am
Games.pl again May 11, 2005, 10:49 am
trying to use Games::Go::SGF November 2, 2006, 3:18 pm
Best free casino games October 5, 2008, 8:04 pm
Help to get started with Module Games::QuizTaker July 4, 2005, 2:12 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap