Re: symbolic reference of hashes in subroutines

2001-10-18 Thread Michael Fowler
RaFaL has answered the question you asked, but it should be mentioned that you are not using symbolic references in your code. \%hash is a hard reference. On Thu, Oct 18, 2001 at 09:33:06AM -0400, Ross Howard wrote: > populate_hash (\%hash1, "HEY1", "value1"); > populate_hash (\%hash2, "HUMM",

Re: symbolic reference of hashes in subroutines

2001-10-18 Thread Ross Howard
That's definately alot easier to read and understand! Thanks R >From: RaFaL Pocztarski <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: symbolic reference of hashes in subroutines >Date: Thu, 18 Oct 2001 18:10:18 +0200 > >Ross Howard wrote:

Re: symbolic reference of hashes in subroutines

2001-10-18 Thread RaFaL Pocztarski
Ross Howard wrote: > Specifically, the line: > ${%{$hash}}{$key} = $value; > ^^^ > This is the part I am not 100% clear on. $hash is a hash reference, right? Then try: $hash->{$key} = $value; - RaFaL Pocztarski, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL

Re: symbolic reference of hashes in subroutines

2001-10-18 Thread Ross Howard
PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Re: symbolic reference of hashes in subroutines >Date: Thu, 18 Oct 2001 15:49:21 +0200 > >i must be missing the point, but why are you using prototyped subroutines >to >populate a hash ref? > >what's wrong with: > >my

Re: symbolic reference of hashes in subroutines

2001-10-18 Thread Jos I. Boumans
i must be missing the point, but why are you using prototyped subroutines to populate a hash ref? what's wrong with: my $href = { foo => 'quux', bar => [ qw( bleh yuck) ], }; or $href->{'baz'} = { foo => 'bar' } ? regards, Jos - Original Message - From: "Ross Howard" <[EMAIL