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 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 verbose "open directory, grep files, close >> directory, unlink files" but I was trying to be more concise (and learn >> 'unlink' in the process). > > 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, for a beginner, what it told me wasn't enough for me to do anything with except scratch my head. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>