in reply to error when passing hash as reference causes
Your print_h function makes a local copy of the hash. You should be aware that this may become an issue for large hashes, or if it is called a large number of times.sub print_h_byref { my $href = shift; while (my ($key, $value) = each %$href) { print " Key: $key,\t Value: $value\n"; } }
|
|---|