in reply to Number of Elements in HoL
.. and suvery says ...$ClusterHostList{'/saconfig/current/cluster1'} = ['localhost','eh050su +2']; &getClusterHostCount('/saconfig/current/cluster1'); sub getClusterHostCount { print "******************entering getclusterhost count\n"; my $clusterID = shift; my $hostcount = scalar @{ $ClusterHostList{$clusterID} } ; print "count = $hostcount\n"; return $hostcount; }
******************entering getclusterhost count count = 2
|
|---|