Click here to get back home

2nd CfP: German Perl Workshop 2006

 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
2nd CfP: German Perl Workshop 2006 Steffen Schwigon 11-07-2005
Posted by Steffen Schwigon on November 7, 2005, 1:53 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
CfP: German Perl Workshop 2005 October 2, 2004, 11:07 pm
Nordic Perl Workshop 2006 - Call for Papers (Reminder) February 15, 2006, 6:24 pm
Nordic Perl Workshop 2006 - Call for Papers (Reminder) April 27, 2006, 2:30 am
4th Italian Perl Workshop 2008 - Call for Papers /Participation March 13, 2008, 1:22 pm
CfP: Workshop on Scripting for the Semantic Web February 4, 2005, 4:34 pm
Perl and German Umlauts May 22, 2007, 5:28 am
csv, perl and German umlaute September 14, 2007, 10:04 am
Perl-related events in 2006 ? April 5, 2006, 2:27 am
Perl IDE Demonstration and Comparison - Feb 28, 2006, San Francisco February 18, 2006, 1:43 pm
OSCON 2006 - Perl programming vs. scripting January 4, 2007, 4:49 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap