Click here to get back home

Problems Installing 5.8.7

 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
Problems Installing 5.8.7 Degz 11-10-2005
Posted by Degz on November 10, 2005, 6:54 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
Problems installing GD March 17, 2006, 9:00 am
Problems Installing perl 5.8.7 November 9, 2005, 7:03 am
Problems Installing perl 5.8.7 November 9, 2005, 7:03 am
Problems installing DBI module on perl August 9, 2004, 10:40 am
Problems installing Unix::Syslog March 21, 2006, 10:21 am
Problems installing Test::Expect on Solaris June 19, 2007, 6:00 am
Installing JPL on Mac OS X April 22, 2005, 9:04 pm
Installing DBI on Mac OS-X.3 April 27, 2005, 4:31 am
Installing Perl in OS/2? August 17, 2004, 4:34 pm
problem installing GD-2.19 December 21, 2004, 10:10 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap