That creates a string of the year, month, and day of the mtime of the current file name in $_. Since you are testing the mtime via the -M operator, that date should be the same as yesterdays date, however you could calculate it yourself if that is what you require.
In reply to Re^3: Appending date to filename for Archiving
by jwkrahn
in thread Appending date to filename for Archiving
by viperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |