Click here to get back home

Facial Biometrics 2006: The Documents, Imaging & Security 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
Facial Biometrics 2006: The Documents, Imaging & Security Conference pcheesman 04-25-2006
Posted by pcheesman on April 25, 2006, 10:37 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
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
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
YAPC::Europe::2006 in Birmingham, UK September 7, 2005, 1:56 am
2nd CfP: German Perl Workshop 2006 November 7, 2005, 1:53 pm
Perl-related events in 2006 ? April 5, 2006, 2:27 am
Data plotting questions Nov. 2, 2006 November 2, 2006, 9:30 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap