Skip Menu |

This queue is for tickets about the B-Utils CPAN distribution.

Report information
The Basics
Id: 107640
Status: new
Priority: 0/
Queue: B-Utils

People
Owner: Nobody in particular
Requestors: ianburrell [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.27
Fixed in: (no value)



Subject: B::Utils disables global warnings
B::Utils disables global warnings (the "-w" flag and $^W variable) when it is loaded. While global warniongs flag is problematic and discouraged, it is bad for a module to change global variable. $ perl -w -le 'BEGIN { print $^W }; use B::Utils; print $^W;' 1 0 The cause is "BEGIN { $^W = 0 }" when setting up trace. I would think that since that is already in BEGIN block, that "local $^W = 0;" would work and fix the errors.