in reply to Re^2: Appending date to filename for Archiving
in thread Appending date to filename for Archiving

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.