IO::Dir also provides a interface to reading directories via a tied
HASH. The tied HASH extends the interface beyond just the directory
reading routines by the use of lstat, from the File::stat package,
unlink, rmdir and utime.

The keys of the HASH will be the names of the entries in the directory.
Reading a value from the hash will be the result of calling
File::stat::lstat. Deleting an element from the hash will call unlink
providing that DIR_UNLINK is passed in the OPTIONS.

Assigning to an entry in the HASH will cause the time stamps of the file
to be modified. If the file does not exist then it will be created. Assigning
a single integer to a HASH element will cause both the access and
modification times to be changed to that value. Alternatively a reference to
an array of two values can be passed. The first array element will be used to
set the access time and the second element will be used to set the modification
time.