dnamonk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have a general logic question. I need help in logic and not code.
I have a question about recalling my function within a loop.
Below is my code:
My problem is that I am loading "List_new" using myfunction(). How can I change "List_new" iteratively when my condition is False. I want to reload the function especially when the condition is FALSE. This means I keep calling the function until it is false and then execute the final output from myfunction(). Thank you in advance for your help.List_new = myfunction() for items in List_new: if(my condition is TRUE): Execute some commands if(my condition is FALSE): recall myfunction()
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Recalling a function iteratively
by tybalt89 (Monsignor) on Nov 29, 2021 at 03:16 UTC | |
by dnamonk (Acolyte) on Nov 29, 2021 at 03:33 UTC | |
Re: Recalling a function iteratively
by NetWallah (Canon) on Nov 29, 2021 at 03:17 UTC | |
Re: Recalling a function iteratively
by AnomalousMonk (Archbishop) on Nov 29, 2021 at 05:05 UTC |
Back to
Seekers of Perl Wisdom