Think about Loose Coupling | |
PerlMonks |
Re: File Attributes in Win32by Eureka_sg (Monk) |
on May 01, 2001 at 18:55 UTC ( [id://76982]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|