Hi
The following is a way of passing a hash to a sub routine by reference.
mysub(\%hash);
sub mysub {
my $params = shift;
my %paramhash = %$params;
}
Now in the previous case let us say instead of a "%hash" I actually have a "anonymous array of hashes" - that is "@{$hash{$key}". How do I pass such an hash to a subroutine by reference? Would be great if you can reply to this.
P.S: I am able to create such an hash and print it - but I am not able to pass it to a subroutine and have this print from the subroutine.
Thanks
Anand