in reply to File Age in Seconds ? (need more handholding)
Re: Updated question
Replace print(time - ( stat(q[$FileName]) )[9]); with print(time - ( stat($FileName) )[9]);
q[...] is the same thing as '...'.