Click here to get back home

using perldb in emacs

 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
using perldb in emacs newsgroupie2003 08-08-2005
Posted by newsgroupie2003 on August 8, 2005, 2:55 am
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 in emacs and shell * and ~ operators August 15, 2005, 12:06 am
Trouble running Emacs-EPL (to run perl in emacs). January 24, 2007, 7:12 am
.perldb interface to DDD July 27, 2004, 12:52 am
.perldb interface to DDD July 28, 2004, 2:16 pm
Out of memory in perldb June 7, 2005, 6:47 pm
perldb -- spaces in parameters August 16, 2006, 11:50 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
emacs AAAAAAAAAAAAAHHH!!! February 19, 2005, 6:16 am
Perl + Emacs July 9, 2006, 8:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap