On Sunday, June 1, 2003, at 04:35 PM, James Edward Gray II wrote:
On Sunday, June 1, 2003, at 03:27 PM, Ken Tozier wrote:
my $description = DescribeCritter(\%wombatStats);
This is passing a hash to a hash. No reference required for that. Just drop the \. I also believe you have a space after the % that shouldn't be there.
Hope that helps.
James
No luck. Dropping the \ in 'my $description = DescribeCritter(\%wombatStats);' didn't fix the problem.
Directly before I pass "wombatStats" to the DescribeCritter, routine I do a print "$_ => $wombatStats{$_}\n" for (sort keys % wombatStats); and everything looks fine. As soon as I get into the subroutine however and do the following:
my %inRecord = $_[0];
the terminal spits out "Odd number of elements in hash assignment at ..." followed by " Use of uninitialized value in concatenation (.) at ..." when I try to grab one of the values. Am I assigning the "my" variable wrong?
Thanks,
Ken
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]