in reply to Re^4: Different behaviors between "while" and "map"
in thread Different behaviors between "while" and "map"
Technically, you're both right, because
is expanded towhile ($_ = <SOME_FILE_HANDLE>){ ... }
while (defined ($_ = <SOME_FILE_HANDLE>)) { ... }
But all this is irrelevant. It's not the magical expansion of <> that causes the scalar context.
|
|---|