Allows files to be deleted when file handles are garbage collected,
in addition to during END. Note that this means we no can longer
ensure .close is called before deletion since we cannot hold onto
the handle or it will never get collected. If that is important
it can be made an option at the cost of potential leakiness.
Since directories do not produce a handle to discard, they will
still accrue. Adding a form of tempdir() that returns an open
dirhandle would allow the same treatment.
Allows files to be deleted when file handles are garbage collected, in addition to during END. Note that this means we no can longer ensure .close is called before deletion since we cannot hold onto the handle or it will never get collected. If that is important it can be made an option at the cost of potential leakiness.
Since directories do not produce a handle to discard, they will still accrue. Adding a form of tempdir() that returns an open dirhandle would allow the same treatment.