Click here to get back home

Boost your business with Quality Web & Design Services at Bargain Prices!

 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
Boost your business with Quality Web & Design Services at Bargain Prices! WOSG Services 01-17-2008
Posted by WOSG Services on January 17, 2008, 9:53 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
Business & Spirituality May 18, 2005, 12:22 am
Business::PayPal::IPN April 21, 2006, 8:37 am
How to boost performance of my crude script? February 23, 2007, 5:49 pm
locating the nearest business day November 9, 2006, 6:58 pm
$6.00 to $20,000 in 4-6 weeks.* Legal Home Business!!! March 28, 2005, 9:21 pm
Market Your Business On Search Engines May 31, 2007, 11:13 pm
**SMALL BUSINESS**PLAN FOR A LOAN** November 22, 2007, 1:08 am
Discover As Beginning Successful Business In Internet. June 18, 2007, 10:29 am
EARN DOLLARS NO INVESTMENT NO SALES 100% HOME BASED BUSINESS June 6, 2008, 2:36 am
web services... September 9, 2004, 12:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap