Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
-w; require 'c:\perl\lib\find.pl'; use File::find; find(\&wanted, 'c:\perlpractice'); sub wanted { my $filename = "$File::Find::name"; $file = $filename; if (-M $file >= 3){ unlink $file; $count++; } } $count = '0' if $count == "0 "; print "$count files were successfully deleted.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: USING MODULES
by young perlhopper (Scribe) on Aug 05, 2000 at 01:26 UTC | |
|
Re: USING MODULES
by davorg (Chancellor) on Aug 05, 2000 at 02:53 UTC | |
|
Re: USING MODULES
by maverick (Curate) on Aug 05, 2000 at 01:23 UTC |