Click here to get back home

interactive text menu configuration module

 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
interactive text menu configuration module buildmorelines 10-27-2004
Posted by buildmorelines on October 27, 2004, 12:02 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
justify text and PDF::API2 module February 17, 2005, 2:26 am
Need a module for grabbing text from a web page February 18, 2005, 11:42 pm
Module for text analysis and comparison? March 23, 2008, 2:21 am
Another procmail configuration January 24, 2007, 5:11 pm
PLUCENE equivalent module for Free Text Retrieval in DBMS November 1, 2004, 11:16 am
commenting configuration files July 18, 2006, 12:46 pm
Apache Configuration using PERL July 17, 2007, 11:27 am
Apache Configuration with PERL July 18, 2007, 4:24 am
Apache Configuration with PERL July 18, 2007, 4:27 am
How to change configuration on installed Perl ? January 11, 2005, 9:57 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap