Click here to get back home

LISA '07 - Latest News and Top 5 Reasons to Attend

 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 - Latest News and Top 5 Reasons to Attend Lionel Garth Jones 09-24-2007
Posted by Lionel Garth Jones on September 24, 2007, 4:25 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
Any goog reasons not to install modules in standard perl installation? July 24, 2007, 2:22 pm
LISA '07 Registration Now Available August 16, 2007, 4:18 pm
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
Re: Latest spamware here!!!!! September 17, 2007, 9:13 am
Re: Latest spamware here!!!!! September 18, 2007, 6:14 am
sort and keep the latest version March 28, 2006, 8:00 pm
Free and latest softwares January 18, 2008, 9:43 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap