in reply to Re^3: Data::Dumper is returning empty
in thread Data::Dumper is returning empty
tomap $_ // '[undef]'
map defined($_) ? $_ : '[undef]'
Update:
Concerning the code you posted, you introduced numerous errors:
for my $nic (networkInfo()) { print "Device: $nic->{device} has IP Address $nic->{ip}\n" . "\tMask: $nic->{mask}\n" . "\tBroadcast: $nic->{bcast}\n"; print "Device: $nic->{device} also IPv6 address $nic->{ip6}\n" if defined($nic->{device}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Data::Dumper is returning empty
by MikeDexter (Sexton) on Jan 19, 2010 at 19:47 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 19:49 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:53 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 20:21 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 20:32 UTC | |
| |
|
Re^5: Data::Dumper is returning empty
by MikeDexter (Sexton) on Jan 19, 2010 at 19:38 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 19:46 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:51 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 19:53 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:55 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 20:03 UTC |