in reply to Passing value from IF loop
Just a small note:
... the if loop ...
if is not a loop. It is typically followed by a block, like most loop constructs (for / foreach, while, repeat (not available in Perl)). But unlike loop constructs that repeatedly execute the code block that follows them (mathematically: zero or more times), if executes the code block either once or not at all, depending on the condition.
Alexander
|
|---|