in reply to Re: truth in while condition
in thread truth in while condition
Even if it wasn't magical, it still wouldn't stop at that line. The two-character string being returned, 0␊, is true. The magic only matters when the last line of the file consists of a 0 without a terminating Line Feed. (It could also happen when $/ = \1;.)
(Oops, the main point of this has already been mentioned a couple of times below, though this post still brings in new information.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: truth in while condition (updated)
by LanX (Saint) on Oct 02, 2018 at 12:32 UTC |