in reply to print last file updated into directory

Prints the most recently modified "catalina." file in the current directory:
use warnings; use strict; print((sort { -M $a <=> -M $b } grep { -f } glob 'catalina.*')[0], "\n +");

Replies are listed 'Best First'.
Re^2: print last file updated into directory
by fabrizio_start_perl (Novice) on Oct 31, 2014 at 13:49 UTC
    Thanks a lot for all answer!