|Welcome to the Monastery|
Re^6: Dumb, non-question: How to return 'nothing'.by ikegami (Pope)
|on Jun 18, 2011 at 06:20 UTC||Need Help??|
No, the loop won't exit even if [ undef ] or [ 0 ] is returned. List assignment in scalar context returns the number of elements to which its RHS evaluates, meaning the number of elements in the array.
You'd be right that
is not equivalent to
But that's not the situation here.
The point was that
is a complicated version of
which is just an expensive version of