Hello all,
Here's what I have..4 single dimension hashes that I'm trying to
use to populate a single hash (single dimension)
with...
%data = return_hash( %one, %two, %three, %four );
sub return_hash
{
my ( %one, %two, %thre
Try just
%data = (%one, %two, %three, %four);
you haven't got any duplicate key names have you??
John
-Original Message-
From: Chris Rutledge [mailto:[EMAIL PROTECTED]]
Sent: 27 July 2001 13:56
To: [EMAIL PROTECTED]
Subject: 4 hashes into 1 hash
Hello all,
Here
Chris,
On Friday 27 July 2001 08:55, Chris Rutledge wrote:
> Here's what I have..4 single dimension hashes that I'm trying to
> use to populate a single hash (single dimension)
What you posted actually works, but I doubt it works the way you think it's
working.
When you pass a series
; Sent: Friday, July 27, 2001 9:09 AM
> To: 'Chris Rutledge'; [EMAIL PROTECTED]
> Subject: RE: 4 hashes into 1 hash
>
> Try just
>
> %data = (%one, %two, %three, %four);
>
> you haven't got any duplicate key names have you??
>
> John
>
>
--- Chris Rutledge <[EMAIL PROTECTED]> wrote:
> Hello all,
> Here's what I have..4 single dimension hashes that I'm trying to
> use to populate a single hash (single dimension)
>
> with...
>
> %data = return_hash( %one, %two, %three, %four );
Unless I misunderstand, you're wor
Hello,
Did you mean:
for(keys(%data)){
print "$_ = $data{$_}\n";
}
or you actually meant the assignment print $_ = $data{$_};
Aziz,,,
In article <1A191D5C8A79D511A7A800306E05E9FC067398@EXCHANGE_SERVER>,
"Chris Rutledge" <[EMAIL PROTECTED]> wrote:
> John,
>
> That works much better
At 10:53 AM 7/27/2001, you wrote:
>Try:
>
>my %data = ( %one, %two %three, %four );
This is a good solution, but be careful of one thing. If there are
duplicate keys in any of the hashes, the last in will win. Meaning, that
if you have a key of 'my key' in %one and in %four, the value of