Re: deleting files from the directory from a file list. Please Help!

2003-08-02 Thread R. Joseph Newton
perlwannabe wrote: > > Not at all. I am checking various sources for this problem. The > responses on the usenet were helpful...but the problem remains. I came to > the mailing list to have a direct dialogue with individuals rather than a > post that will get lost in two days. I am appreciativ

RE: deleting files from the directory from a file list. Please Help!

2003-07-25 Thread wiggins
real quick. What happens when 'string' is empty because someone left a blank line in the file (ouch) > -Original Message- > From: perlwannabe [mailto:[EMAIL PROTECTED] > Sent: Friday, July 25, 2003 3:04 PM > To: [EMAIL PROTECTED] > Subject: deleting files f

Re: deleting files from the directory from a file list. Please Help!

2003-07-25 Thread John W. Krahn
Perlwannabe wrote: > > Here is my problem. I want to delete the files contained in a directory > from a list contained in a file. Here is an example: > > The input file is a regular text file in the following format (call it > myfile.txt); > > item1 > item2 > item3 > item4 > > > What I w

RE: deleting files from the directory from a file list. Please Help!

2003-07-25 Thread bseel
w you a better way. Brian -Original Message- From: perlwannabe [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 3:04 PM To: [EMAIL PROTECTED] Subject: deleting files from the directory from a file list. Please Help! Here is my problem. I want to delete the files contained in a direct

deleting files from the directory from a file list. Please Help!

2003-07-25 Thread perlwannabe
Here is my problem. I want to delete the files contained in a directory from a list contained in a file. Here is an example: The input file is a regular text file in the following format (call it myfile.txt); item1 item2 item3 item4 What I want to do is look in a directory and delete any

RE: deleting files

2003-01-21 Thread NYIMI Jose (BMB)
t; instead. If LIST is omitted, uses "$_". C:\> > -Original Message- > From: Piotr [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 1:34 PM > To: [EMAIL PROTECTED] > Subject: deleting files > > > Hi all, > > I am new to perl and I tr

deleting files

2003-01-21 Thread Piotr
Hi all, I am new to perl and I try to remove file with it, but I don't known how :( I find modules File::Copy, File::Find, but not File::Delete :( How can I do this ? Peter ***r-e-k-l-a-m-a** Chcesz oszczedzic na kosztach obslugi bankowej ? mBIZNES - konto dla fi

RE: deleting files

2002-07-15 Thread Bob Showalter
> -Original Message- > From: Michael Pastore [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 8:48 AM > To: [EMAIL PROTECTED] > Subject: deleting files > > > Hello All, > > Just a quick question on deleting files in Perl. > > I am trying

RE: deleting files

2002-07-15 Thread Michael Pastore
M To: [EMAIL PROTECTED] Subject: Re: deleting files Michael Pastore wrote: > > Hello All, Hello, > Just a quick question on deleting files in Perl. > > I am trying to delete some files in a directory, but I do not know their > names...just ending extension... > > I ha

Re: deleting files

2002-07-15 Thread John W. Krahn
Michael Pastore wrote: > > Hello All, Hello, > Just a quick question on deleting files in Perl. > > I am trying to delete some files in a directory, but I do not know their > names...just ending extension... > > I have tried: > > One way: > > unlink &l

RE: deleting files

2002-07-15 Thread Michael Pastore
Got it working :) Thanks to Mike, Nikola and Janek... Have a wonderful day!!! Mike -Original Message- From: Mike(mickalo)Blezien [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:04 AM To: Michael Pastore Cc: [EMAIL PROTECTED] Subject: Re: deleting files Hi Michael

RE: deleting files

2002-07-15 Thread Nikola Janceski
no offense, but using that method you won't know if all the files were really removed. > -Original Message- > From: Janek Schleicher [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 8:01 AM > To: [EMAIL PROTECTED] > Subject: Re: deleting files > > >

Re: deleting files

2002-07-15 Thread Mike(mickalo)Blezien
$removefile (@files) { $deletefile = $DIR . "/" . $removefile; unlink $deletefile if -e $deletefile; } hope this helps :) >>On Mon, 15 Jul 2002 08:48:12 -0400, Michael Pastore <[EMAIL PROTECTED]> > wrote: >>Just a quick question on deleting files

Re: deleting files

2002-07-15 Thread Janek Schleicher
Michael Pastore wrote at Mon, 15 Jul 2002 14:48:12 +0200: > I am trying to delete some files in a directory, but I do not know their >names...just ending > extension... > > I have tried: > One way: > > unlink <*.dat>; > unlink <*.p1>; > > Another way: > > unlink glob(".dat"); > unlink glob("

RE: deleting files

2002-07-15 Thread Nikola Janceski
15, 2002 8:48 AM > To: [EMAIL PROTECTED] > Subject: deleting files > > > Hello All, > > Just a quick question on deleting files in Perl. > > I am trying to delete some files in a directory, but I do not > know their > names...just ending extension... > > I have

deleting files

2002-07-15 Thread Michael Pastore
Hello All, Just a quick question on deleting files in Perl. I am trying to delete some files in a directory, but I do not know their names...just ending extension... I have tried: One way: unlink <*.dat>; unlink <*.p1>; Another way: unlink glob(".dat"); unlink glob(&