Click here to get back home

POPL 2005 Call for Participation

 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
POPL 2005 Call for Participation David Walker 11-26-2004
Get Chitika Premium
Posted by David Walker on November 26, 2004, 11:28 am
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
4th Italian Perl Workshop 2008 - Call for Papers /Participation March 13, 2008, 1:22 pm
POPL 07 Call for Papers May 22, 2006, 2:06 am
POPL 08 Call for Papers June 9, 2007, 1:10 am
POPL 2006 Call for Papers (Charleston SC, Jan 06) May 31, 2005, 10:44 pm
OSDC 2005 Call For Papers August 15, 2005, 1:43 pm
[ICCIMA'05] Final Call for Papers; Due Date March 10, 2005 March 5, 2005, 3:07 pm
How to compile Perl using VC8 (.Net 2005)? May 20, 2006, 7:00 pm
CfP: German Perl Workshop 2005 October 2, 2004, 11:07 pm
The Perl Review, Spring 2005 February 17, 2005, 1:19 pm
[ANN]: Last Chance 2005 IORCC Entries March 30, 2005, 12:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap