Click here to get back home

perldb -- spaces in parameters

 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 -- spaces in parameters avilella@gmail.com 08-16-2006
Get Chitika Premium
Posted by avilella@gmail.com on August 16, 2006, 11:50 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 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
using perldb in emacs August 8, 2005, 2:55 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
sub in a package with parameters May 12, 2005, 11:07 am
array parameters October 24, 2004, 11:40 am
Re: remembering parameters April 7, 2008, 6:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap