- or download this
# you can get rid of the ($netHash{$val} > 1.0) test
# I only included it to make the example more like yours
...
}
...
...
- or download this
sub printHash {
my $href = shift;
...
my $RandKey = $href_keys[int(rand(scalar @href_keys))];
print "$RandKey $href->{$RandKey}\n";
}
- or download this
foreach my $n ( 1 .. 100 ) {
printHash( $capVal_hash{$n} );
}
- or download this
my @range_destination
= ( [ 1.0, 1.4, 1 ],
...
}
}
}