There's more than one way to do things | |
PerlMonks |
While loop does not terminateby nysus (Parson) |
on Dec 13, 2020 at 16:42 UTC ( [id://11125117]=perlquestion: print w/replies, xml ) | Need Help?? |
nysus has asked for the wisdom of the Perl Monks concerning the following question: Disregard. This was a problem in the return value from get_value(), not the while loop test. Sorry to bother everyone.Got this simple while loop:
The $status is set to the value returned by the get_value() function. When the value returned is no longer 'initializing', I want the loop to terminate. However, the while loop never terminates. It keeps going even when get_value() returns 'ok' and I'm not sure why. I've tried a few different iterations of this code to no avail. This simplified version code works as expected:
But when I try to duplicated this in my real world code, it doesn't work.
$PM = "Perl Monk's";
Back to
Seekers of Perl Wisdom
|
|