Charlene Gentle wrote:
perldoc -f unlink
You are stat()ing the same file a second time.
You are stat()ing the same file a third time.
Use the _ special filehandle to avoid stating the same file more than once.
return if -d _;
return unless -r _;