You know, this sounds awfully like the question "Sherri" asked a couple of
days ago... See the below thread.
-Original Message-
From: John Edwards [mailto:[EMAIL PROTECTED]]
Sent: 15 November 2001 11:51
To: 'Sherri'; [EMAIL PROTECTED]
Subject: RE: Help with PERL
See the list FAQ. Sectio
Jonathan Vandine wrote:
>
> I am trying to pass to hashes to a subroutine and combine into one hash.
> Then return that hash as a reference to the main program. Then print the
> result of new hash.
>
> %h1 = ("key1" => value1);
> %h2 = ("key2" => value2);
> $rnew = &mergehash(\%h1, \%h2)
On Nov 16, jonathan vandine said:
>%h1= ("key1" => value1);
>%h2= ("key2" => value2);
>$rnew = &mergehash(\%h1, \%h2);
> sub mergehash{
> %h3 = @_;
Here, %h3 consists of ONE key and ONE value -- the key is \%h1, and the
value is \%h2.
Merging hashes is probably too m