Click here to get back home

SIGCHLD not called under Windows

 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
SIGCHLD not called under Windows kalahari 10-27-2006
Posted by kalahari on October 27, 2006, 8:13 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

Posted by kalahari on October 31, 2006, 2:07 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
ignoring SIGCHLD June 23, 2005, 10:23 am
problem in POSIX module with handling SIGCHLD July 15, 2005, 8:52 am
sleep/fork/shell/SIGCHLD interaction problem November 11, 2007, 10:41 am
DESTROY isn't called June 23, 2006, 12:33 pm
Indirectly called code August 24, 2006, 3:02 am
Is it ok to change $ENV before "use CGI;" is called..? March 4, 2007, 9:31 am
"Undefined subroutine &main:: called." from nowhere?? August 11, 2004, 2:45 pm
How to locate my script file itself when it is called by others. August 1, 2005, 8:02 pm
Re: called too early to check prototype at March 18, 2008, 9:01 pm
Injecting variables after the import subroutine has been called? July 7, 2004, 8:13 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap