Click here to get back home

strange

 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
strange Alexandre Jaquet 02-14-2005
|--> Re: strange Sherm Pendley02-14-2005
|--> Re: strange chris-usenet02-14-2005
|--> Re: strange Dominik Seelow02-14-2005
`--> Re: strange Bernard El-Hagi...02-14-2005
Get Chitika Premium
Posted by Bernard El-Hagin on February 14, 2005, 4:42 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
This is strange!!! What happens in here??? January 12, 2007, 6:11 am
Strange DBI error January 13, 2005, 12:31 pm
Strange Problem February 17, 2005, 4:51 pm
strange return value October 18, 2005, 1:14 pm
very strange behaviour November 24, 2005, 7:02 am
Dealing with a STRANGE API October 6, 2006, 5:24 pm
Strange behaviour November 9, 2006, 7:15 am
Re: very strange bug (in perl?) March 19, 2008, 8:02 pm
Re: very strange bug (in perl?) March 19, 2008, 9:19 pm
Re: strange behavior of ?? August 1, 2008, 4:44 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap