Click here to get back home

Market Your Business On Search Engines

 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
Market Your Business On Search Engines DannyBoy Advertising 05-31-2007
Get Chitika Premium
Posted by DannyBoy Advertising on May 31, 2007, 11:13 pm
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
Pan in SDL_Perl, Alt. Audio Engines (Win32) February 3, 2008, 7:05 am
Extracting text between two market lines. (FAQ variation?) April 13, 2007, 6:43 am
Business & Spirituality May 18, 2005, 12:22 am
Business::PayPal::IPN April 21, 2006, 8:37 am
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
**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
Boost your business with Quality Web & Design Services at Bargain Prices! January 17, 2008, 9:53 am
EARN DOLLARS NO INVESTMENT NO SALES 100% HOME BASED BUSINESS June 6, 2008, 2:36 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap