in reply to insert data into Nested Hash

Your hash description is alarming. You do know that \%a is unrelated to hash ref $a, right?

What you call an insert into the hash is a complete re-assignment of the hash. I think you're making very clunky use of hashes, and perhaps a review of perlreftut would be helpful. At the least, you can change your statement to an insert like so:

$Profileshoh{$prow->[0]} = { $prow->[1]=>{ $prow->[2]=>{ MIN_VALUE=>$returno[0] } } };
but I haven't determined whether that's What You Really Want.

Update: I think you Really Want

$profileshoh{$prow->[0]}{$prow->[1]}{prow->[2]}{MIN_VALUE} = $returno[ +0];

We're not really tightening our belts, it just feels that way because we're getting fatter.

Replies are listed 'Best First'.
Re^2: insert data into Nested Hash
by poqui (Deacon) on Jul 15, 2004 at 18:33 UTC
    Your hash description is alarming. You do know that \%a is unrelated to hash ref $a, right?

    Whoops! No I didn't realize that. I see now. $a is a reference to an anoymous hash, and \%a is the reference to a named hash, named %a.

    And YES! Your Update was exactly what I really wanted.
    Thank You! :-)