in reply to How to get the File creation date

Please use <code> tags for code, otherwise it looks mighty strange.

What you have written is equivalent to

$m= stat ($file[9]);

What you probably wanted is

$m= (stat $file)[9];