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 =
$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
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
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
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:
$
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