4 hashes into 1 hash

2001-07-27 Thread Chris Rutledge
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

RE: 4 hashes into 1 hash

2001-07-27 Thread John Edwards
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

Re: 4 hashes into 1 hash

2001-07-27 Thread Troy Denkinger
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

RE: 4 hashes into 1 hash

2001-07-27 Thread Chris Rutledge
; 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 > >

Re: 4 hashes into 1 hash

2001-07-27 Thread Paul
--- 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

RE: 4 hashes into 1 hash

2001-07-27 Thread Abdulaziz Ghuloum
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

Re: 4 hashes into 1 hash

2001-07-27 Thread Sean O'Leary
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