Re: adding hash reference into hash

2003-03-03 Thread Dave K
Yannick, $ perl -e ' > %ch = (h1 => {}, h2 => {}); > for (keys %ch) { > print"$_\n"; > }' h1 h2 > Hi, Hello, > I'm just trying to make a structure with a hash containing some > references to other (yet unused) hashes. see above. > > So what I wrote this: > > $intHash1Ref = {}; > $intHash2Ref =

RE: adding hash reference into hash

2003-03-03 Thread Shishir K. Singh
$containerHash{$hashRefKeys}; foreach my $hashKeys (keys %{$hashRef} ) { print $hashKeys, " ", $hashRef->{$hashKeys},"\n"; } } -Original Message- From: Shishir K. Singh Sent: Monday, March 03, 2003 12:42 PM To: 'Hanson, Rob'; 'Yan

RE: adding hash reference into hash

2003-03-03 Thread Shishir K. Singh
reach my $hashKeys (keys %{$containerHash{$hashRefKeys}} ) { print $hashKeys, " ", $hashRef->{$hashKeys},"\n"; } } Output is C D A B -Original Message- From: Hanson, Rob [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 12:14 PM To: 'Yannick Wa

Re: adding hash reference into hash

2003-03-03 Thread Robin Norwood
Yannick Warnier <[EMAIL PROTECTED]> writes: > Hi, > > I'm just trying to make a structure with a hash containing some > references to other (yet unused) hashes. > > So what I wrote this: > > $intHash1Ref = {}; > $intHash2Ref = {}; > > %containerHash = { hash1 => $intHash1Ref, hash2 => $i

RE: adding hash reference into hash

2003-03-03 Thread Hanson, Rob
essage- From: Yannick Warnier [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:40 AM To: [EMAIL PROTECTED] Subject: adding hash reference into hash Hi, I'm just trying to make a structure with a hash containing some references to other (yet unused) hashes. So what I wrote this: $

adding hash reference into hash

2003-03-03 Thread Yannick Warnier
Hi, I'm just trying to make a structure with a hash containing some references to other (yet unused) hashes. So what I wrote this: $intHash1Ref = {}; $intHash2Ref = {}; %containerHash = { hash1 => $intHash1Ref, hash2 => $intHash2Ref}; Then when I try to have a list of keys to that contai