Perl Monk, Perl Meditation | |
PerlMonks |
getting a while loop to terminateby Aldebaran (Curate) |
on Apr 15, 2012 at 02:16 UTC ( [id://965118]=perlquestion: print w/replies, xml ) | Need Help?? |
Aldebaran has asked for the wisdom of the Perl Monks concerning the following question: Hello good people I've glanced at other people's posts and must say that this is very low-brow in comparison to what others are able to do. I guess we all start somewhere. Most of this script works for me, but I haven't quite wrangles the subroutine to return a new directory, in particular, what happens is that the while loop never terminates:
I know that execution goes through the else clause because I have dozens of directories now. I believe that I have a correct form for making the $flag false in the same clause, but perl thinks that I do nothing to end this control. How come? Also accepting any tips to make this more concise and readable. Thanks in advance,
Back to
Seekers of Perl Wisdom
|
|