diff --git a/bin/disable-proxy b/bin/disable-proxy index a4072cf64..1db83854b 100755 --- a/bin/disable-proxy +++ b/bin/disable-proxy @@ -2,8 +2,7 @@ # disable-proxy - Reverse/remove the configuration options set by enable-proxy. use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; + BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Color'; } use 5.010; # Version in CentOS 6 diff --git a/bin/disable-twofactor b/bin/disable-twofactor index 24ab84d9f..2cdc7b4d5 100755 --- a/bin/disable-twofactor +++ b/bin/disable-twofactor @@ -2,8 +2,7 @@ # disable-twofactor - Disable two-factor authentication for a user. use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; + BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Color'; } use 5.010; # Version in CentOS 6 diff --git a/bin/enable-proxy b/bin/enable-proxy index 5d0751961..70a8932ba 100755 --- a/bin/enable-proxy +++ b/bin/enable-proxy @@ -3,8 +3,7 @@ # through a proxy. use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; + BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Color'; } use 5.010; # Version in CentOS 6 diff --git a/bin/language-manager b/bin/language-manager index f2d1ac9e2..83f08394b 100755 --- a/bin/language-manager +++ b/bin/language-manager @@ -3,8 +3,7 @@ use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; + use 5.014; use File::Spec; diff --git a/bin/list-config b/bin/list-config index abd0defb1..b770ae7b3 100755 --- a/bin/list-config +++ b/bin/list-config @@ -3,8 +3,7 @@ # module. use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; + BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Color'; } use 5.010; # Version in CentOS 6 diff --git a/bin/passwd b/bin/passwd index f7e5dd42e..cc966e916 100755 --- a/bin/passwd +++ b/bin/passwd @@ -3,8 +3,6 @@ use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; use 5.010; use File::Basename; diff --git a/bin/server b/bin/server index 3d99ef1c4..3695e92b0 100755 --- a/bin/server +++ b/bin/server @@ -3,8 +3,6 @@ use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; use 5.010; use File::Basename; diff --git a/bin/set-config b/bin/set-config index 726026f46..f5443f427 100755 --- a/bin/set-config +++ b/bin/set-config @@ -3,8 +3,7 @@ # restart Webmin to apply the change. use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; + BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Color'; } use 5.010; # Version in CentOS 6 diff --git a/bin/update-devel b/bin/update-devel index 4e602f79e..25f93eda2 100755 --- a/bin/update-devel +++ b/bin/update-devel @@ -3,8 +3,6 @@ use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; use 5.010; diff --git a/bin/webmin b/bin/webmin index c496cd053..99d86c26d 100755 --- a/bin/webmin +++ b/bin/webmin @@ -3,8 +3,6 @@ # functions on the command line. use strict; use warnings; -no warnings 'redefine'; -no warnings 'uninitialized'; BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Color'; } use 5.010; # Version in CentOS 6