Think about Loose Coupling | |
PerlMonks |
Trouble with flow controlby eoin (Monk) |
on Jun 10, 2003 at 16:43 UTC ( [id://264754]=perlquestion: print w/replies, xml ) | Need Help?? |
eoin has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, This script was one of my very first, made late last year. Since then I have come on leaps and bounds mainly thanks to you all here. I thought that I had lost both the script and the formula for this equation but I found it just lying in a forgotten undisturbed part of hard drive. I spruced it up a small bit and hope to integrate tk's graph module into it but i seem to have a problem.... The script runs fine i.e. Perl gives no errors, but when I get to the sub confirm part thats where I have problems. Initially it should, if $answer is equal to "n" send you back to the start if $answer is equal to "y" send you to the middle sub and if $answer is equal to anything else send you back to the top of confirm. It doesn't. No matter what I type. I always end up going back to the start subroutine. And I'm starting to feel a bit lost. Going round in circles if you will! Any and all comments are as always very welcome. Thank you in advance. Heres the code:
All the Best, Eoin... If everything seems to be going well, you obviously don't know what the hell is going on. Edit by tye, add READMORE
Back to
Seekers of Perl Wisdom
|
|