in reply to Passing hashes to subs?

You cannot pass the hash as you did without distroying it. It is being flattened into a list. Pass it by reference :

callsub(\%hashtopass); sub callsub { my $hashref = shift; foreach my $k (keys %$hashref) { .. ..

read more about references


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/