Click here to get back home

LISA '07 Registration Now Available

 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
LISA '07 Registration Now Available Lionel Garth Jones 08-16-2007
Posted by Lionel Garth Jones on August 16, 2007, 4:18 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
LISA '07 Call For Papers April 27, 2007, 11:48 am
USENIX LISA '08 Call For Papers February 12, 2008, 4:52 pm
Update from the LISA '08 Program Chair April 21, 2008, 4:58 pm
I have soooo many pics of Lisa Simpson masturbating July 14, 2004, 1:37 pm
LISA '07 - Latest News and Top 5 Reasons to Attend September 24, 2007, 4:25 pm
Use MSXML in perl without registration July 24, 2006, 7:06 pm
APL2007 reminder: early (cheaper) registration ends Thursday 9/13 September 8, 2007, 10:53 pm
No bullshit! no credit card verification! FREE registration and earn money NOW! March 18, 2005, 11:32 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap