Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^18: printing unitialized value of the 'do BLOCK' (EXPRESSION vs TERM vs STATEMENT)by ikegami (Patriarch) |
on Dec 28, 2019 at 13:57 UTC ( [id://11110696]=note: print w/replies, xml ) | Need Help?? |
No. Again, the condition of an if statement is defined to be an expression, so
isn't an expression because
isn't valid. Furthermore, if any statement is an expression because any statement can be found at the end of the block of a do BLOCK, then the paragraph that's been quoted saying that the returned value is only defined for expressions wouldn't make sense. Your usage of the terms clearly differs from the documentation's.
In Section
Seekers of Perl Wisdom
|
|