hi all, I've got a problem in following script: sub A { our %a; $a{"fred"} = 1; $a{"bella"} = 2; ... } sub B { if ($fred != $a{"fred"}) { print "fred failed.\n"; } if ($bella != $a{"bella"} { print "bella failed.\n"; } }
The problem is, I made the hash %a in sub A but in sub B, the value in hash %a is never read. The declaration "our" seems not effect. Why?... Thanks in advance... -Remy