Click here to get back home

Forum Script

 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
Forum Script ajauctionpro 11-06-2007
Get Chitika Premium
Posted by ajauctionpro on November 6, 2007, 5:41 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
Forum Script November 2, 2007, 6:15 am
could I use perl to write a script to logon multiple web forum? August 18, 2004, 4:10 pm
forum October 2, 2005, 9:56 am
Perl Forum July 9, 2005, 9:06 pm
Need forum Administrator October 18, 2005, 10:38 am
forum perl January 22, 2007, 11:55 pm
Which is the best FREE forum? April 14, 2007, 1:37 am
Support you the best free forum! May 18, 2007, 1:26 am
Free advertising forum August 15, 2007, 12:31 pm
Problem with file upload in forum July 31, 2004, 11:53 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap