in reply to Why -M doesn't work?

CPAN can help you

#!/usr/bin/perl use strict; use warnings; use File::Find; my @dirs = ('/dir/subdir'); find( \&wanted, @dirs ); sub wanted { my ( $dev, $ino, $mode, $nlink, $uid, $gid ); /^\.tmp\z/s && ( ( $dev, $ino, $mode, $nlink, $uid, $gid ) = lstat($_) ) && ( int( -M _ ) > 7 ) && unlink($_); }
'Ebry haffa hoe hab im tik a bush'. Jamaican proverb

Replies are listed 'Best First'.
Re^2: Why -M doesn't work?
by ysth (Canon) on Feb 08, 2008 at 09:16 UTC
Re^2: Why -M doesn't work?
by xingjin3131 (Novice) on Feb 15, 2008 at 15:44 UTC
    Thanks a lot.