LeeC79 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; my $data = "C:\\dir"; opendir DIR, $data; my @file = grep {/^APPL_RMKS_RCV.200309.*$/ } readdir DIR; closedir DIR; #This produces a screen printout of a number of files in the directory + with filenames matching the initial search print @file; unlink @file or die "$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting Files
by broquaint (Abbot) on Oct 03, 2003 at 15:27 UTC | |
|
Re: Deleting Files
by chromatic (Archbishop) on Oct 03, 2003 at 15:27 UTC | |
by LeeC79 (Acolyte) on Oct 03, 2003 at 17:36 UTC | |
|
Re: Deleting Files
by liz (Monsignor) on Oct 03, 2003 at 15:23 UTC | |
|
Re: Deleting Files
by dragonchild (Archbishop) on Oct 03, 2003 at 15:29 UTC | |
|
Re: Deleting Files
by chanio (Priest) on Oct 04, 2003 at 05:27 UTC |