update MRO usage

at least with my perl 5.26.1 and Data::Printer 0.40 you can't pass subroutines to p().

seems useful info for the wiki, will draft up a page nxt week.
This commit is contained in:
nick n
2019-03-03 02:38:11 +01:00
committed by GitHub
parent 2e2c6958d6
commit 9c8e8fa4e0

View File

@@ -97,7 +97,12 @@ SNMP::Info::MRO - Method resolution introspection for SNMP::Info
use SNMP::Info::MRO;
use Data::Printer;
p SNMP::Info::MRO::all_methods('SNMP::Info::Layer3::Juniper');
# SNMP::Info::MRO::print_* functions
SNMP::Info::MRO::print_superclasses ('SNMP::Info::Layer3::Juniper');
# print output using Data::Printer for other functions
my $buff = SNMP::Info::MRO::all_methods('SNMP::Info::Layer3::Juniper');
p $buff;
=head1 DESCRIPTION