while (defined ($_ = <SOME_FILE_HANDLE>)) { ... } [download]
In reply to Re^4: Different behaviors between "while" and "map" by JavaFan in thread Different behaviors between "while" and "map" by lightoverhead