Click here to get back home

Inviting You to World's 1st Online Marketing Careers Conference

 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
Inviting You to World's 1st Online Marketing Careers Conference Pradeep Chopra 01-05-2008
Posted by Pradeep Chopra on January 5, 2008, 1:04 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
You new viral marketing webpage January 3, 2006, 4:52 am
Australian Open Source Developers' Conference July 11, 2005, 4:51 pm
ACM SIGAPL / APL2007 Conference / Montreal / one week away October 15, 2007, 5:22 am
USENIX Announces Open Access to Conference Proceedings March 13, 2008, 4:37 pm
Webcool24.com : Biggest worldwide Asian free Video multi language web , Travel, Sports, Racing cars , Massages techniques, Games , Fashions, Jokes , Top models , Free online IT learning , 5000 links, 250 free online TV , 50000 music video, nice la August 15, 2007, 8:58 am
International Conference on Computational Intelligence and Multimedia Applications 2005 January 31, 2005, 12:40 pm
International Conference on Computational Intelligence and Multimedia Applications 2005 January 31, 2005, 12:41 pm
Facial Biometrics 2006: The Documents, Imaging & Security Conference April 25, 2006, 10:37 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap