Looking at your code, I think you want to enter the if statement, if you have a file in your directory that has the same name as a file in the %prolist. Is that why you are using the glob for?
Why not using the -f test operator??
I fail to see what the while loop does in your case, so please clarify
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium
In reply to Re: loop control
by mce
in thread loop control
by maxl90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |