From 9c8e8fa4e03a4a1ee55a29cd83b3f3eecc337453 Mon Sep 17 00:00:00 2001 From: nick n <39005454+inphobia@users.noreply.github.com> Date: Sun, 3 Mar 2019 02:38:11 +0100 Subject: [PATCH] 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. --- lib/SNMP/Info/MRO.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/SNMP/Info/MRO.pm b/lib/SNMP/Info/MRO.pm index 47fd72d7..cdf7ba05 100644 --- a/lib/SNMP/Info/MRO.pm +++ b/lib/SNMP/Info/MRO.pm @@ -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