in reply to Passing a string in a foreach loop
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing a string in a foreach loop
by mat001 (Initiate) on Oct 20, 2005 at 03:56 UTC | |
by GrandFather (Saint) on Oct 20, 2005 at 04:05 UTC | |
by GrandFather (Saint) on Oct 20, 2005 at 04:08 UTC | |
by mat001 (Initiate) on Oct 20, 2005 at 04:16 UTC | |
by GrandFather (Saint) on Oct 20, 2005 at 06:17 UTC | |
by mat001 (Initiate) on Oct 20, 2005 at 19:22 UTC |