John,
this code didn't work for me. Although I did have to change DATA to
RD;
- 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:
Hi all,
Hello,
I am trying
Mark Goland wrote:
John,
this code didn't work for me. Although I did have to change DATA to
RD;
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
- 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,
I am trying to setup a hash who's values are referance
Mark Goland wrote:
John,
this code didn't work for me. Although I did have to change DATA to
RD;
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]
[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 would think it
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 ( DATA ) {
chomp;
my ( $name, $value ) = split /\s*=\s*/ or next;
if ( exists $temp-{
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
[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