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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user