in reply to Re: Help with waitpid and forking ?
in thread Help with waitpid and forking ?

Hi

Thanks for all the help tachyon. I have having some problems running the code you sampled. When it is done with the do_dir and it hits the exit. It exits the whole program. But what I just figured out that the problem only happens in when i run it with perl builder. When i ran it from a command line it ran fine. I am running win 2k. does any one know why this happened?

Thanks

  • Comment on Re: Re: Help with waitpid and forking ?

Replies are listed 'Best First'.
Re: Re: Re: Help with waitpid and forking ?
by tachyon (Chancellor) on Sep 05, 2001 at 22:18 UTC

    In case you have not noticed Perl Builder inserts itself between your code and Perl. As a result code runs about 10-100 times slower in the IDE than from the command line, and sometimes weird stuff happens. I always double check on the command line if I think my code is OK but it chokes in PB2. Often the code runs fine so something in the PB2/perl.exe interface is breaking it. Most code runs fine in PB2 but forking does not. I get the same result as you in PB2. There is however nothing wrong with my code as you have found when you run it from the command line :-)

    The lastest version 2c is better that 2b or 2a. The {ahmm} *extended life demo versions* are all unstable and more buggy than the registered product.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

    * cracks