[libvirt] [PATCH perl v2] Remove use of Data::Dumper from example programs
John Ferlan
jferlan at redhat.com
Tue Feb 6 18:32:37 UTC 2018
On 02/06/2018 01:10 PM, Daniel P. Berrangé wrote:
> Using Data::Dumper in examples does not help devs understand the data
> structures that the Perl APIs are returning. Change to explicit field
> accesses to illustrate it better
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> examples/dhcp-leases.pl | 7 +++++--
> examples/dom-fsinfo.pl | 8 +++-----
> examples/dom-ifinfo.pl | 14 +++++++++-----
> examples/dom-stats.pl | 9 +++------
> examples/node-info.pl | 26 +++++++++++++++++++-------
> 5 files changed, 39 insertions(+), 25 deletions(-)
>
Changes probably should mention this too..
Reviewed-by: John Ferlan <jferlan at redhat.com>
John
More information about the libvir-list
mailing list