Click here to get back home

**SMALL BUSINESS**PLAN FOR A LOAN**

 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
**SMALL BUSINESS**PLAN FOR A LOAN** Pressly 11-22-2007
Posted by Pressly on November 22, 2007, 1:08 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
Full_screen by default after loan the CGI file, anyone know September 30, 2005, 12:07 am
>>>>>>>>>>>>>>> FREE TIPS & TRICKS ON HOW TO GET YOUR HOME LOAN APPROVED November 24, 2007, 6:59 am
A small question January 16, 2005, 9:27 pm
XML::Twig -- help with something small June 7, 2005, 8:12 am
XML::Twig -- help with something small June 7, 2005, 8:48 am
A small Perl problem November 5, 2004, 1:52 pm
HELP needed for a small script January 9, 2005, 3:32 pm
Regexp small question March 1, 2005, 12:40 am
Need syntax/small footprint help March 26, 2005, 1:24 pm
Small script on OpenBSD July 23, 2007, 6:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap