in reply to Re: Testing for a directory handle
in thread Testing for a directory handle

Cool, good thinking

I will keep these work-arounds in mind when I am coding

Thanks, Matt

Replies are listed 'Best First'.
Re^3: Testing for a directory handle
by kcott (Archbishop) on Jan 30, 2018 at 03:41 UTC

    If you do find this general technique useful, I'll just highlight two sections from the warnings pragma documentation which you may want to look at:

    Category Hierarchy
    The "io" category has seven sub-categories. Depending on what you're actually doing, you may find these useful for more specific tests.
    Fatal Warnings
    This discusses various caveats with making warnings fatal. It also shows how turn them back to their original non-fatal state.

    — Ken