in reply to Problem using BEGIN in module and retrieving global data from hash

Direct assignment basically obliterates all previous values
use DDS; my %f; Dump(\%f); %f = (1,2); Dump(\%f); %f = (3,4); Dump(\%f); %f = (%f, 6,6 ); Dump(\%f); __END__ $HASH1 = {}; $HASH1 = { 1 => 2 }; $HASH1 = { 3 => 4 }; $HASH1 = { 3 => 4, 6 => 6 };
  • Comment on Re: Problem using BEGIN in module and retrieving global data from hash
  • Download Code

Replies are listed 'Best First'.
Re^2: Problem using BEGIN in module and retrieving global data from hash
by sherr (Novice) on Nov 21, 2010 at 15:24 UTC

    Of course ... I feel stupid now, and I'm not sure what I was thinking! But thanks for reading and answering.

    Cheers, Sherringham