in reply to Simple hash assignment...or is it?
First you're using local where I think you mean my. Second, you've got your hash assignment backwards. If you want
to actually print something, then you need to changeforeach (@tcp_utilization_metrics) { print "$tcp_utilization_adapter_names{$_}\n"; }
to$tcp_utilization_adapter_names{"$if_name"} = "$network_if";
Michael$tcp_utilization_adapter_names{$network_if} = $if_name;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Simple hash assignment...or is it?
by arootbeer (Novice) on Nov 22, 2003 at 01:08 UTC | |
by mpeppler (Vicar) on Nov 22, 2003 at 01:17 UTC | |
by arootbeer (Novice) on Nov 22, 2003 at 01:21 UTC |