Perl 5.40 bare `while (<$fh>)` inside a helper subroutine overwrites caller's `@array` elements with `undef` via global `$_` aliasing
Language: Perl · Versions: Perl 5.40.0 The problem In Perl, for (@items) aliases $ directly to each element of @items. Furthermore, $ is a package-global variable ($main::)…
2 posts ·