Files
snmp-info/lib/SNMP
Jeroen van Ingen Schenau a4c66663c1 Don't add AUTOLOAD generated methods in symbol table (#409) (#410)
When a method is resolved via AUTOLOAD (eg for objects defined in %FUNCS),
adding the method to the symbol table leads to skipping AUTOLOAD on subsequent
calls to the method. The method table however is global to the interpreter,
so even when a new SNMP::Info instance is created for a different device, all
methods created by a previous device are just "carried over" to the new one
if they are put into the symbol table. This breaks a method like "v_name",
which may resolve differently in different device classes, in the use case
where devices from different classes are polled one after another (even if
new SNMP::Info object instances are used every time).
2020-11-18 11:36:13 +00:00
..
2020-11-15 20:04:41 +01:00