I would initialize the $allmondayflag = 1 before the loop, and set it to 0 for the first occurence of a non-monday.
Then outside the file reading loop you can check the $allmondayflag and decide where to move the file to.
Other than that your code looks pretty good, but I would add use warnings; to the top
In reply to Re^3: Seeking help with Looping problem
by imp
in thread Seeking help with Looping problem
by sasrs99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |