I could be wrong but I think that when you use -A on the filename, you need to specify the path as well unless the file is located in the same directory as where you call the script.( similiar to your unlink ("$dirPath\\$file") statement)
As a result, undef is being returned instead of the number of days since the file couldn't be found.
In reply to Re: File Attributes in Win32
by Eureka_sg
in thread File Attributes in Win32
by azatoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |