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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 545
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"; }
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10814-1329227341-1581.74701-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 18
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.