Click here to get back home

Problems installing Unix::Syslog

 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 Unix::Syslog J Huntley Palmer 03-21-2006
Get Chitika Premium
Posted by J Huntley Palmer on March 21, 2006, 10:21 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
perl 5.8.8 make test hangs on ext/Sys/Syslog/t/syslog................... indefinitely August 9, 2007, 12:47 pm
Syslog replay script for centralized syslog host October 28, 2004, 1:21 pm
Problems Installing 5.8.7 November 10, 2005, 6:54 am
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 Test::Expect on Solaris June 19, 2007, 6:00 am
Converting between Local and Unix time problems January 5, 2006, 1:20 pm
Problems with IO::socket hanging on windows (works fine on Unix) June 2, 2005, 3:33 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap