Re: Unlink question

2005-03-01 Thread JupiterHost.Net
Robert wrote: On 3/1/05 9:18 AM, in article [EMAIL PROTECTED], "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: perldoc -f unlink Note: "unlink" will not delete directories unless you are superuser and the -U flag is supplied to Perl. Have you actually done that? Normally, I do go by perldoc but in

Re: Unlink question

2005-03-01 Thread Robert
On 3/1/05 9:18 AM, in article [EMAIL PROTECTED], "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > >>> perldoc -f unlink >>> >>> Note: "unlink" will not delete directories unless you are superuser and >>> the -U flag is supplied to Perl. >> >> >> Have you actually done that? Normally, I do go by

Re: Unlink question

2005-03-01 Thread JupiterHost.Net
perldoc -f unlink Note: "unlink" will not delete directories unless you are superuser and the -U flag is supplied to Perl. Have you actually done that? Normally, I do go by perldoc but in this case, Yes, that is where I got the info about removing a directpry which is what you asked about. for

Re: Unlink question

2005-02-28 Thread Robert
On 2/28/05 7:15 PM, in article [EMAIL PROTECTED], "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > > > Robert wrote: >> I know the directory where the files I want to delete are stored. I know the >> files all look like "msqupd.log.somenumber", I have tried a few things to >> pass the directory to

Re: Unlink question

2005-02-28 Thread Wiggins d'Anconia
JupiterHost.Net wrote: Robert wrote: I know the directory where the files I want to delete are stored. I know the files all look like "msqupd.log.somenumber", I have tried a few things to pass the directory to unlink without success. The directory does have a space in it (I am not sure if that ma

Re: Unlink question

2005-02-28 Thread JupiterHost.Net
Robert wrote: I know the directory where the files I want to delete are stored. I know the files all look like "msqupd.log.somenumber", I have tried a few things to pass the directory to unlink without success. The directory does have a space in it (I am not sure if that matters). I have had succe

Unlink question

2005-02-28 Thread Robert
I know the directory where the files I want to delete are stored. I know the files all look like "msqupd.log.somenumber", I have tried a few things to pass the directory to unlink without success. The directory does have a space in it (I am not sure if that matters). I have had success with a more

RE: silly unlink question..

2002-01-24 Thread Bob Showalter
> -Original Message- > From: Nikola Janceski [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 23, 2002 2:48 PM > To: 'Jonathan E. Paton'; [EMAIL PROTECTED] > Subject: RE: silly unlink question.. > > > okay so this works: > > @files = ; &

RE: silly unlink question..

2002-01-24 Thread Nikola Janceski
opendir/readdir/closedir to do this, but I wanted to know why the second example doesn't work. -Original Message- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 2:24 PM To: [EMAIL PROTECTED] Subject: Re: silly unlink question.. > But can some

RE: silly unlink question..

2002-01-23 Thread Jonathan E. Paton
> okay so this works: > > @files = ; > print "@files\n"; > is obviously not a filehandle, or a variable containing one. Hence it's a glob. > but this doesn't: > > $search = "/home/*/*.txt"; > @files = <$search>; > print "@files\n"; > <$search> is treated as a named filehandle, since that i

Re: silly unlink question..

2002-01-23 Thread Jonathan E. Paton
> But can someone explain the <*.bak>? how does that work > and what does it do? (and where is there a description > of it's use)? Thanx File glob. Returns an array of filenames which match the regex /*\.bak$/ - basically those that end in .bak This is a very Unix like feature of Perl, which

silly unlink question..

2002-01-23 Thread Nikola Janceski
in the man perlfunc page we see: unlink LIST unlink Deletes a list of files. Returns the number of files successfully deleted. $cnt = unlink 'a', 'b', 'c'; unlink @goners; unlink <*.bak>; Note: "unlink" wil