Re: Hash ref's of hash's

2004-04-04 Thread R. Joseph Newton
Mark Goland wrote: > John, > this code didn't work for me. Although I did have to change to > ; What code? I see nothing above this to indicate what you are referring to. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hash ref's of hash's

2004-04-04 Thread Mark Goland
- Original Message - From: "Wiggins d'Anconia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 01, 2004 9:24 PM Subject: Re: Hash ref's of hash's > [EMAIL PROTECTED] wrote: > > Hi all, &

Re: Hash ref's of hash's

2004-04-04 Thread WC -Sx- Jones
Mark Goland wrote: John, this code didn't work for me. Although I did have to change to ; Probably because he use the sample data in the DATA filehandle. His code works correctly near as I can tell; so - My question is - is your data actually in this format? Sample DATA port = 0 bmanset = 0

Re: Hash ref's of hash's

2004-04-04 Thread Mark Goland
John, this code didn't work for me. Although I did have to change to ; - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: <> Sent: Friday, April 02, 2004 7:47 PM Subject: Re: Hash ref's of hash's > [EMAIL PROTECTED] wrote:

Re: Hash ref's of hash's

2004-04-02 Thread John W. Krahn
"John W. Krahn" wrote: > > Perhaps this will do what you want: > > #!perl -w > use strict; > use Data::Dumper; > > open RD, 'input.txt' or die "Cannot open 'input.txt' $!"; > > my ( %data, $temp ); > while ( ) { > chomp; > my ( $name, $value ) = split /\s*=\s*/ or next; > if ( exis

Re: Hash ref's of hash's

2004-04-02 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Hi all, Hello, > I am trying to setup a hash who's values are referance to hash's. Data > structure should look like this > > hash > 1: >setting 1 >setting 2 > 2: >setting 1 >setting 2 > > > I wo

Re: Hash ref's of hash's

2004-04-01 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi all, I am trying to setup a hash who's values are referance to hash's. Data structure should look like this hash 1: setting 1 setting 2 2: setting 1 setting 2 This does not look like a HoH, but a HoA. I

Hash ref's of hash's

2004-04-01 Thread mgoland
Hi all, I am trying to setup a hash who's values are referance to hash's. Data structure should look like this hash 1: setting 1 setting 2 2: setting 1 setting 2 I would think it can be accomplished with following code, but when