in reply to Re^4: $_ not set in while <>
in thread $_ not set in while <>
The condition is not "dense".
I didn't say it was dense. What does that even mean? At what point does something become dense? How can you claim it is or isn't dense?
I said the "condition is so dense you missed that it devolves into an infinite loop of prints and warns." You tried to jam so much into a single expression that you got the expression wrong. Worse, and maybe even more importantly, it's very hard to notice that it's wrong because it's so dense. I only noticed when I rewrote your code.
Works fine for me
How would you know? You didn't try giving EOF or an error. The fact that your code doesn't handle this immediately stood out after a rewrite.
I am sure that there are many Monks who will disagree with style issues!
Sure, but when it's so hard to read that errors crop in, and when the other alternative makes the error obvious, we start leaving the realm of subjectiveness and entering the realm of objectiveness.
Also, it leaks the $line variable to the surrounding scope.
Seeking work! You can reach me at ikegami@adaelis.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: $_ not set in while <>
by LanX (Saint) on Jun 09, 2021 at 14:15 UTC | |
by ikegami (Patriarch) on Jun 09, 2021 at 19:06 UTC |