read the last modified file in perl
问题 How can I read the content of the last modified file in a directory in perl I have a tool for received sms and I want to give out the content of the last modified file , which is stored in gammu/inbox directory , with a perl script for example: the script checked if a new sms in folder(gammu/inbox), are they, then give out the content from the last sms. 回答1: Sort the directory according to the age of each file, using the -M file test operator. The most recently modified file will then be the