in reply to Automatically deleting selected directories on program exit
This code is actually an example where the change isn't absolutely trivial, because $On_close is a file-scoped lexical. I'd put it in a tighter scope and write an accessor (or for smaller stuff cop out and make it our).
|
|---|