You need to import DIR_UNLINK
use IO::Dir qw[DIR_UNLINK];
tie my %d, 'IO::Dir', '.', DIR_UNLINK;
Or, as DIR_UNLINK is defined as the constant 1 you could just do
use IO::Dir;
tie my %d, 'IO::Dir', '.', 1;
It's a strange way to define options!
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.