diff --git a/lib/SNMP/Info/Layer2.pm b/lib/SNMP/Info/Layer2.pm index cfcab670..cbcc3df8 100644 --- a/lib/SNMP/Info/Layer2.pm +++ b/lib/SNMP/Info/Layer2.pm @@ -150,7 +150,7 @@ sub interfaces { my $port = $i_descr->{$iid}; next unless defined $port; - my $port = SNMP::Info::munge_null($port); + $port = SNMP::Info::munge_null($port); $port =~ s/^\s+//; $port =~ s/\s+$//; next unless length $port; diff --git a/lib/SNMP/Info/Layer3.pm b/lib/SNMP/Info/Layer3.pm index 69790ff9..7dcff6e8 100644 --- a/lib/SNMP/Info/Layer3.pm +++ b/lib/SNMP/Info/Layer3.pm @@ -335,7 +335,7 @@ sub interfaces { my $port = $i_descr->{$iid}; next unless defined $port; - my $port = SNMP::Info::munge_null($port); + $port = SNMP::Info::munge_null($port); $port =~ s/^\s+//; $port =~ s/\s+$//; next unless length $port;