RE: hash concatenation

2001-11-16 Thread John Edwards
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

Re: hash concatenation

2001-11-16 Thread John W. Krahn
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)

Re: hash concatenation

2001-11-16 Thread Jeff 'japhy' Pinyan
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