also added use warnings and strict

also fixed all reported errors by these, but work is still needed.

stuff like

sub thingy {
        my $thing = shift;
        my $stuff = $thing->os_ver();
        if ($stuff =~ /check/) {

-> newer perls (or perhaps just my config somehow) seems to prefer

        if ((defined $stuff) && ($stuff =~ /check/)) {

instead.

or perhaps i just don't understand autoloader magic & return type nuances.
This commit is contained in:
nick n
2019-08-26 13:48:50 +02:00
committed by GitHub
parent 091a3692e3
commit 75a00fabe9

View File

@@ -4,6 +4,7 @@ Version 3.69 (2019-xx-xx)
* duplex support for ciscosb
* report all vendor names in lowercase
* sprinkle "use warnings" and "use strict" around
[BUG FIXES]