|No such thing as a small change|
while(EXPR) has special magic for <> aka readline, but only if it's the sole EXPR. °
is a shorthand for
Personally I'd write
I find this more readable. YMMV!
B::Deparse can help you explore the difference