Re: Deleting selected files in a directory through perl

2005-02-04 Thread Ing. Branislav Gerzo
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

Re: Deleting selected files in a directory through perl

2005-02-04 Thread Jenda Krynicky
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

RE: Deleting selected files in a directory through perl

2005-02-04 Thread Manav Mathur
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

Re: Deleting selected files in a directory through perl

2005-02-04 Thread Alfred Vahau
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

Re: Deleting selected files in a directory through perl

2005-02-04 Thread Ing. Branislav Gerzo
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,