> >Sleep() in MacPerl seems to do a "busy wait", leaving little or no time > >for other applications to run. Would it be feasible for it to give away > >some CPU time, albeit at the expense of accuracy? > > What version of MacPer are you using? sleep() behaviour changed in 5.0.5. Let's see: MacPerl 5.0.5r1m, System 7.5.1, PowerBook 540. Running this script: #!/bin/perl sleep 60; puts the Mac entirely to sleep; none of the menus or buttons respond until the sleep period is up. The mouse is still tracked, however. Simon