Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Sys-HostIP CPAN distribution.

Report information
The Basics
Id: 74701
Status: resolved
Priority: 0/
Queue: Sys-HostIP

People
Owner: Nobody in particular
Requestors: mmusgrove [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.90
Fixed in: (no value)



Subject: Bug in interfaces example
Download (untitled) / with headers
text/plain 545b
The example for interfaces is incorrect. my $interfaces = $hostip->interfaces; foreach my $interface ( @{$interfaces} ) { my $ip = $interfaces->{$interface}; print "$interface => $ip"\n"; } 1. There is an extra double quote between $ip and \n. 2. $interfaces is not an array reference. The following does work but feel free to change it however you like. my $interfaces = $hostip->interfaces; foreach my $interface ( keys %{$interfaces} ) { my $ip = $interfaces->{$interface}; print "$interface => $ip\n"; }
Merged, thanks! :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.