Click here to get back home

APL2007 reminder: early (cheaper) registration ends Thursday 9/13

 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
APL2007 reminder: early (cheaper) registration ends Thursday 9/13 Mike Kent 09-08-2007
Posted by Mike Kent on September 8, 2007, 10: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
The Perl Review, with cheaper subscription options December 7, 2004, 1:41 am
Re: called too early to check prototype at March 18, 2008, 9:01 pm
Last Reminder: Survey about Architecture and Design Patterns February 26, 2007, 1:53 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
LISA '07 Registration Now Available August 16, 2007, 4:18 pm
Use MSXML in perl without registration July 24, 2006, 7:06 pm
APL2007 update October 3, 2007, 8:21 am
Announcing: ACM SIGAPL APL2007 -- Arrays and Objects May 27, 2007, 2:05 pm
ACM SIGAPL / APL2007 Conference / Montreal / one week away October 15, 2007, 5:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap