in reply to Re: return value of "if" (documentation?)
in thread return value of "if" (documentation?)
... the last statement evaluated is the conditional...
do{}; blocks can be thought of as immediate-execution subroutines, with implicit(-only) return values.
These two things in particular cleared things up for me very well, thank you very much! The second one also clears up why an empty do{} returns undef or the empty list depending on context. Although now I can't help but wonder where that is documented, if at all...?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: return value of "if" (documentation?)
by Anonymous Monk on Jan 16, 2014 at 00:50 UTC |