Jenda Krynicky [JK], on Friday, February 04, 2005 at 13:58 (+0100)
wrote these comments:
JK> Don't shell out (start external programs) for things you may do in
JK> Perl easily:
JK> Eg.
JK> my @files = do {open my $IN, '<', 'filelist.txt'; <$IN>};
for 'test' purposes is shorter my @files
From: "Ing. Branislav Gerzo" <[EMAIL PROTECTED]>
> Kamalraj Singh Madhan, Noida [KSM], on Friday, February 4, 2005 at
> 13:38 (+0530 ) typed:
>
> KSM> Kindly let me know if this possible, deleting some selected
> files from a KSM> directory through a perl script. This selection
> would be ba
my @files= ; ##should be good enough
-Original Message-
From: Ing. Branislav Gerzo [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 1:57 PM
To: beginners@perl.org
Subject: Re: Deleting selected files in a directory through perl
Kamalraj Singh Madhan, Noida [KSM], on Friday
Hi,
use the File::Find module and its methods. An example of usage may be
found at this URL.
http://www.perl.com/pub/a/2004/10/14/file_editing.html
You can modify the last example to delete recursively.
alfred,
Kamalraj Singh Madhan, Noida wrote:
Hi All,
Kindly let me know if this possible, de
Kamalraj Singh Madhan, Noida [KSM], on Friday, February 4, 2005 at
13:38 (+0530 ) typed:
KSM> Kindly let me know if this possible, deleting some selected files from
a
KSM> directory through a perl script. This selection would be based on the
KSM> filename existing in a particular text file,