Click here to get back home

Daemon Win32::Daemon;

 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
Daemon Win32::Daemon; ph1975 09-07-2006
Get Chitika Premium
Posted by ph1975 on September 7, 2006, 6:58 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
Win32::Daemon for 5.8 September 14, 2007, 6:38 am
Win32::Daemon December 20, 2007, 6:10 am
Win32::Daemon Source Code February 4, 2008, 4:51 am
Multi-process Win32 HTTP Daemon April 29, 2006, 1:11 pm
daemon in perl October 26, 2007, 1:27 am
Net::Daemon install question August 20, 2004, 10:32 am
rsh daemon written in perl? December 12, 2004, 11:14 pm
FAQ 8.36 How do I fork a daemon process? March 26, 2005, 6:03 am
FAQ 8.36 How do I fork a daemon process? June 2, 2005, 11:03 am
Dealing With Zombies in a Daemon August 29, 2005, 8:05 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap