in reply to Uninitialized value in reverse
By using anything more than the diamond operator (or an assignment of it), the magic is gone. So, reverse <DATA> reverses DATA, but doesn't assign anything to $_.while (defined($_ = <>))
See also I/O Operators in perlop.
|
|---|