in reply to Newbie Question -- Changing File Path?

I do this in a program I wrote to get rid of unwanted files in the windows environment. When the user enters the path name append the file name on to the end of it, so instead of having file1.txt
$array[0] = C:/MainDir/SubDir/ExtraDir/file1.txt
When the array is all filled up with your unwanted files you just say:
$i = $#array; for ($i;$i >= 0;$i--){ unlink $array[$i]; }
or this works just as well
while (@array) { $x = (pop, @array); unlink $x; }