[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Script works with debugger but .....



jmanley@metronet.com (Jim Manley) writes:
>>Actually, it looks like it works correctly the first time, but if you
>>run it again without restarting MacPerl, then only the prompt string is
>>printed, no matter what you type in response.
>>
>You're correct.  Another person suggested I put
>
>        select( (select(STDOUT), $|)[0] );
>
>at the head of the script but that didn't make any difference.

Make that "$| = 1", not "$|". The bug consisted of MacPerl not resetting the
buffering correctly.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
  "And that's why I am going to turn this world upside down, and make
   of it a fire so *bright* that someone real will notice"
                                -- Vernor Vinge, _Tatja Grimm's World_