Are you sure that the values in @file are folder names and not file names? You may like to print each $f as it is processed and check that it was what you expected. Something like print "Processing >$f<\n" should do the trick. The > and < are there so you have a better chance of seeing leading and trailing whitespace and other nasty characters.
In reply to Re: Passing a string in a foreach loop
by GrandFather
in thread Passing a string in a foreach loop
by mat001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |