even i tried windows del command but it prompts for confirmation to delete the files do u know how to suppress these prompts ? i did not find any switch which allows you to suppress
pls suggest. regards irfan ________________________________ From: Shlomi Fish <shlo...@shlomifish.org> To: pa...@laposte.net Cc: Irfan Sayed <irfan_sayed2...@yahoo.com>; Perl Beginners <beginners@perl.org> Sent: Monday, June 27, 2011 5:53 PM Subject: Re: rmdir Hi Pangj, On Mon, 27 Jun 2011 14:07:51 +0100 pa...@laposte.net wrote: > > Won't system "rm -rf /path/to/dir" just work for you? > 1. This is on Windows, so "rm" may not be available. perldoc -f system in general is not portable. 2. Better use the list form of system: system("rm", "-fr", $path); With the string version, you're risking code injection: http://shlomif-tech.livejournal.com/35301.html Regards, Shlomi Fish > > > > Message du 27/06/11 13:59 > > De : "Irfan Sayed" > > A : "Shlomi Fish" > > Copie à : "Perl Beginners" > > Objet : Re: rmdir > > > > i did that but no luck > > is there any another way ? > > > > regards > > irfan > > > > > > > > ________________________________ > > From: Shlomi Fish > > To: Irfan Sayed > > Cc: Perl Beginners > > Sent: Monday, June 27, 2011 5:05 PM > > Subject: Re: rmdir > > > > > > > > > > Shlomi Fish (shlo...@shlomifish.org) added themselves to your Guest List | > > Remove them | Block them > > Une messagerie gratuite, garantie à vie et des services en plus, ça vous > tente ? Je crée ma boîte mail www.laposte.net > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Why I Love Perl - http://shlom.in/joy-of-perl Chuck Norris writes understandable Perl code. Please reply to list if it's a mailing list post - http://shlom.in/reply .