If I get it right, you've got the path in $path and a list of mere filenames in @arr, each of which must be prepended with $path to get a list of full paths. I'd use map:
unlink map { "$path/$_" } @arr;You should definitely test the return value of unlink: If anything goes wrong, it won't complain loudly but merely return a false value
--bwana147
In reply to Re: Newbie Question -- Changing File Path?
by bwana147
in thread Newbie Question -- Changing File Path?
by KStowe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |