I think you want to move the last condition outside the file reading loop.if ((localtime($time))[6] == 1 ) { $allmondayflag = 1; next; } else { $allmondayflag = 0; last; } if ($allmondayflag) { # I never get run }
In reply to Re: Seeking help with Looping problem
by imp
in thread Seeking help with Looping problem
by sasrs99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |