Click here to get back home

How to make money through net

 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
How to make money through net sd 11-30-2007
Get Chitika Premium
Posted by sd on November 30, 2007, 5:22 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
make money!!!make money!!! January 1, 2005, 5:49 pm
LET'S HELP EACH OTHER MAKE MONEY January 9, 2005, 10:23 pm
LET'S HELP EACH OTHER MAKE MONEY January 10, 2005, 7:50 pm
make money with bux!! December 4, 2007, 5:33 am
MAKE MONEY USING PAYPAL January 10, 2005, 9:02 pm
Make money fast March 10, 2005, 10:05 pm
make lots of money June 24, 2005, 4:09 pm
easy way to make money March 21, 2006, 9:39 am
How much more money can I make using Perl over C++? January 20, 2007, 4:20 pm
make money online$$$$$$$ October 28, 2007, 11:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap