in reply to extracting year of a file

There's technically no such thing as a file creation time. Look up -M and -C in perlfunc.