in reply to Detecting drive unavailability on ActivePerl

I don't have a Windows specific way of helping you out, but I do have another idea. I'm working on the assuption that this is an interactive things being you are accessing a floppy otherwise you can stop reading now! Maybe instead of just dying if the pipe can't be opened, trap the error and send it to a sub-routine that prompts the user to insert/check the floppy etc. If it fails a second (or some number of) times then exit with a nice "Can't access your floppy" message.

-THRAK
www.polarlava.com
  • Comment on Re: Detecting drive unavailability on ActivePerl

Replies are listed 'Best First'.
Re: Re: Detecting drive unavailability on ActivePerl
by InfiniteSilence (Curate) on Apr 30, 2001 at 19:43 UTC
    No, no. You cannot recover from the pipe by changing how the open routine dies. You don't have that luxury. The lockup is immediate. You get "Abort, Retry, Fail" prompts at the command line. Regardless of what you type, your machine is going to either lock up completely or stay in that mode forever.

    Celebrate Intellectual Diversity