On Fri, Jul 3, 2015 at 10:26 AM, Tom Browder <tom.brow...@gmail.com> wrote:
> While experimenting I've found the first two methods of passing a hash
> to a subroutine work:
>
> # method 1
> my %hash1;
> foo1(%hash1);
> say %hash1.perl;
> sub foo1(%hash) {
>   %hash{1} = 0;
> }

Another question on method 1 above, please:

What is the proper type to use for the %hash for a more complete
signature in function foo1?  I've tried various types such
Associative, Hash, and Any and gotten an exception.

Thanks,

-Tom

Reply via email to