Click here to get back home

International Conference on Computational Intelligence and Multimedia Applications 2005

 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
International Conference on Computational Intelligence and Multimedia Applications 2005 avinash 01-31-2005
Posted by avinash on January 31, 2005, 12:40 pm
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
International Conference on Computational Intelligence and Multimedia Applications 2005 January 31, 2005, 12:41 pm
Call For Papers: ISMM 2006 (International Symposium on Memory Management) January 1, 2006, 1:23 am
Intelligence Query July 17, 2004, 10:46 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
Inviting You to World's 1st Online Marketing Careers Conference January 5, 2008, 1:04 am
USENIX Announces Open Access to Conference Proceedings March 13, 2008, 4:37 pm
Facial Biometrics 2006: The Documents, Imaging & Security Conference April 25, 2006, 10:37 pm
How to compile Perl using VC8 (.Net 2005)? May 20, 2006, 7:00 pm
CfP: German Perl Workshop 2005 October 2, 2004, 11:07 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap