in reply to Close all open file descriptors

Not an answer to your question, but you should make that regex /^\.\.?\z/ or you'll skip any item name with a period anywhere in it.

Update: if the stuff in /proc/.../fd are file designators, the above obviously doesn't apply, but you should skip the fdopen and just close them with POSIX::close($item) instead.

Replies are listed 'Best First'.
Re^2: Close all open file descriptors
by bschmer (Friar) on Jul 28, 2004 at 15:22 UTC
    That did the trick. Thanks!