Re: Passing arrays/associative arrays into subroutines ... how?

2003-06-02 Thread James Edward Gray II
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 -- To

Re: Passing arrays/associative arrays into subroutines ... how?

2003-06-02 Thread Ken Tozier
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

Re: Passing arrays/associative arrays into subroutines ... how?

2003-06-02 Thread James Edward Gray II
On Sunday, June 1, 2003, at 04:12 PM, Ken Tozier wrote: No luck. Dropping the \ in 'my $description = DescribeCritter(\%wombatStats);' didn't fix the problem. You're right. I was dumb. Let me try again... my $description = DescribeCritter(\% wombatStats); Drop the backslash and space here,

RE: Passing arrays/associative arrays into subroutines ... how?

2003-06-02 Thread Charles K. Clarkson
Ken Tozier [EMAIL PROTECTED] wrote: : : my %wombatStats = GetWombat(); : my $description = DescribeCritter(\% wombatStats); my $description = DescribeCritter(\%wombatStats); I didn't try it but I don't think the space after '%' is a good idea. It is a good idea to get in the habit of passing

Re: Passing arrays/associative arrays into subroutines ... how?

2003-06-02 Thread Tassilo von Parseval
On Sun, Jun 01, 2003 at 04:20:28PM -0500 James Edward Gray II wrote: On Sunday, June 1, 2003, at 04:12 PM, Ken Tozier wrote: No luck. Dropping the \ in 'my $description = DescribeCritter(\%wombatStats);' didn't fix the problem. You're right. I was dumb. Let me try again... my