From 3b604723bd8d7b58e5cb0defebe29e069a5db74f Mon Sep 17 00:00:00 2001 From: nick n <39005454+inphobia@users.noreply.github.com> Date: Sat, 23 Feb 2019 22:30:04 +0100 Subject: [PATCH] typo & 2 variables that were not defined with my (#309) --- README | 6 +++--- lib/SNMP/Info.pm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index 64885ab8..2db8f99f 100644 --- a/README +++ b/README @@ -36,8 +36,8 @@ SYNOPSIS my $err = $info->error(); die "SNMP Community or Version probably wrong connecting to device. $err\n" if defined $err; - $name = $info->name(); - $class = $info->class(); + my $name = $info->name(); + my $class = $info->class(); print "SNMP::Info is using this device class : $class\n"; # Find out the Duplex status for the ports @@ -208,7 +208,7 @@ SUBCLASSES See documentation in SNMP::Info::AMAP for details. SNMP::Info::Bridge - BRIDGE-MIB (RFC1286). QBRIDGE-MIB. Inherited by devices with Layer2 + BRIDGE-MIB (RFC1286). Q-BRIDGE-MIB. Inherited by devices with Layer2 support. See documentation in SNMP::Info::Bridge for details. diff --git a/lib/SNMP/Info.pm b/lib/SNMP/Info.pm index 757c7f10..f1642c56 100644 --- a/lib/SNMP/Info.pm +++ b/lib/SNMP/Info.pm @@ -69,8 +69,8 @@ list any missing functionality (such as neighbor discovery tables). my $err = $info->error(); die "SNMP Community or Version probably wrong connecting to device. $err\n" if defined $err; - $name = $info->name(); - $class = $info->class(); + my $name = $info->name(); + my $class = $info->class(); print "SNMP::Info is using this device class : $class\n"; # Find out the Duplex status for the ports @@ -260,7 +260,7 @@ See documentation in L for details. =item SNMP::Info::Bridge -F (RFC1286). F. Inherited by devices with Layer2 +F (RFC1286). F. Inherited by devices with Layer2 support. See documentation in L for details.