in reply to Unlink works in windows, not in Linux?
Can't see anything obvious. Doubt your problem is related to unlink. Putting more tracing in your code listing all files in the foreach loop (before and after the -M test) should clarify what is going on.
Be aware that there are some significant differences in unlink semantics between Unix and Windows:
- Example of Unix unlink having different semantics to Windows
- Unix file delete permissions are directory write permissions (different to Windows file delete permissions)
|
---|
In Section
Seekers of Perl Wisdom