You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common usage is local *STDOUT; for temporarily overriding standard file handles. Rewriting that to local *STDOUT = undef emits a waring, https://perldoc.perl.org/perldiag#Undefined-value-assigned-to-typeglob. The alternative local *STDOUT = *funny_name is too strange. So let's settle with the a bit loss awkward local *STDOUT; ## no critic qw(Variables::RequireInitializationForLocalVars). Ultimately something like IO::Capture should be used for these cases.
This policy has been added to CodePolicy in https://github.com/RotherOSS/CodePolicy/issues/99.See also https://metacpan.org/pod/Perl::Critic::Policy::Variables::RequireInitializationForLocalVars .
The text was updated successfully, but these errors were encountered: