kgherman has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I'm trying to write a while loop and I'm running into some problems with the condition that I need to put in the loop. I would like to know if I can put as a condition a user defined function that has an outcome of TRUE or FALSE.
I'm not very familiar with how to write such type of functions so before I venture into this I would like to know whether it's doable to begin with.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: User defined function in while loop
by toolic (Bishop) on Jun 19, 2015 at 18:43 UTC | |
|
Re: User defined function in while loop
by ikegami (Patriarch) on Jun 19, 2015 at 18:41 UTC | |
|
Re: User defined function in while loop
by Laurent_R (Canon) on Jun 19, 2015 at 20:15 UTC |