Daniel Rychlik wrote:
> I think you need to add a slash here as a reference.
> 
> --->  my @keys = keys(%$info);
> 
> --->  my @keys = keys(\%$info); # Use a reference to a hash.
> 
> Try that.  Ive used references before with hashes and they work great
> but not like you are doing in your routine.

No, the first version is correct.  "keys" expects a hash, not a
reference.  Besides, if you wanted the reference, you've already got
it in $info.

The original error appears to be that $info was a scalar and not a
hash reference as expected.

-- 
Bowie
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to