Click here to get back home

.perldb interface to DDD

 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
.perldb interface to DDD Roman Kaganovich 07-28-2004
Get Chitika Premium
Posted by Roman Kaganovich on July 28, 2004, 2:16 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
.perldb interface to DDD July 27, 2004, 12:52 am
Out of memory in perldb June 7, 2005, 6:47 pm
using perldb in emacs August 8, 2005, 2:55 am
perldb -- spaces in parameters August 16, 2006, 11:50 am
perldb in emacs and shell * and ~ operators August 15, 2005, 12:06 am
"global watch-expressions" in perldb? January 3, 2008, 11:50 am
WhenProblem calling perldb from a script, the current source line is not properly selected! (keywords: perl, xemacs, debug, gud, terminal, tty) November 12, 2007, 7:32 am
Interface between C and Perl September 5, 2004, 6:15 pm
Website Interface August 15, 2006, 1:25 pm
Web interface to script? September 19, 2007, 5:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap