rray has asked for the wisdom of the Perl Monks concerning the following question:

I have worked in UNIX for a number of years but I have about 1 week of experience with Windows. We receive dvd's of images. I need to open the images and check some of their tags to determine if we should accept or reject the batch. I use my @imgs = Imager->read_multi(file=>$tiff, type=>'tiff') or die "read_multi failed: $!\n"; This works fine until I get a bad dvd. This will hang for 3 to 15 minutes before giving up. But, Imager->read_multi does not fail. If I copy the file to the hard drive after several minutes I get a partial file. Using Windows XP and ActivePerl 5.8 Since alarm() doesn't work what are my options?

Replies are listed 'Best First'.
Re: timeout when reading bad data
by zentara (Cardinal) on Aug 22, 2008 at 18:32 UTC