Click here to get back home

You new viral marketing webpage

 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
You new viral marketing webpage Rinatah 01-03-2006
Posted by Rinatah on January 3, 2006, 4:52 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
Search Engine Marketing (SEM), SEM Firm India, Internet Marketing Services India Hyderabad December 20, 2007, 3:33 am
Marketing Software April 28, 2008, 12:03 am
Inviting You to World's 1st Online Marketing Careers Conference January 5, 2008, 1:04 am
webpage March 1, 2005, 1:04 am
Entirely new idea for a webpage April 28, 2005, 12:06 pm
print < January 6, 2006, 8:32 am
Using libwww to retrieve a UTF-8 webpage November 4, 2004, 8:56 pm
How to redirect to webpage using perl? June 29, 2005, 11:18 am
Taking snapshot of a webpage August 9, 2006, 1:23 am
extract links from webpage September 7, 2006, 7:36 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap