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
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
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
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
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
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
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
> -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
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
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
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
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
>
>
>
$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
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("
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
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(&
16 matches
Mail list logo