BigJoe has asked for the wisdom of the Perl Monks concerning the following question:
Thanksuse strict; use File::Find; open (FOO, ">>filelist.txt"); find(\&TEST_FOR_AGE, '.'); sub TEST_FOR_AGE { print "$File::Find::name\n"; if (!( -e "$File::Find::name")){ print "Help $File::Find::name doesn't exist!!"; exit; } if ((-M "$File::Find::name" >= 30) && (-f "$File::Find::name")) { print FOO "$File::Find::name\n"; } print "\n"; } close FOO;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 & File::Find
by Hofmator (Curate) on Aug 16, 2001 at 20:00 UTC | |
|
Re: Win32 & File::Find
by arturo (Vicar) on Aug 16, 2001 at 19:57 UTC |