Click here to get back home

Discover As Beginning Successful Business In Internet.

 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
Discover As Beginning Successful Business In Internet. pacovegavilla 06-18-2007
Posted by pacovegavilla on June 18, 2007, 10:29 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
sub, discover name of while running? December 8, 2005, 3:05 am
discover invisible characters June 10, 2008, 3:10 pm
discover invisible characters June 10, 2008, 3:12 pm
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
Discover Islam - The Fastest Growing Religion in the World ! July 4, 2008, 2:05 am
$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

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap