I wrote a script a few months ago that did what you are trying... system("rm", "$imagepath/$filename");
... but this is not the best solution, I was just faking it because I did not know better - I would use follow Bret's advice instead - it's the "Real McCoy". ;) - sorry -----Original Message----- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 8:27 AM To: Tyler Cruickshank Cc: [EMAIL PROTECTED] Subject: Re: system("rm") problem On Fri, 5 Oct 2001, Tyler Cruickshank wrote: > Hi. Im running perl via cygwin on NT. I want to remove all files *.1.txt. > > I have tried: > > 1) system("rm *.t.txt"); > > 2) $file = '*.1.txt'; > system("rm $file"); > > 3) system('rm *.1.txt'); You don't need to use the system call for that -- take a look at the File::Copy module (using your perldoc tool) and see what it offers. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]