I want a solution that will work on all platforms.

I read in Lerning Perl that unlink <*> could delete all files.
But what if i want to delete all files under a certain directory?

will unlink <./mydir/*> work?


----- Original Message ----- 
From: "Denzil Kruse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 04, 2004 10:26 AM
Subject: Re: Removing many files and subdirectories under a folrder


> Not a perl master, but can't you just do a:
> 
> system("rm -r <dirname>");
> 
> Is that what you mean?
> 
> Denzil
> 
> --- John <[EMAIL PROTECTED]> wrote:
> 
> > can the above be done with one perl function?
> 
> 
> 
> 
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to