in reply to Re^2: Subarray in a hash: Can't use string ("STRING") as a HASH ref while "strict refs" in use
in thread Subarray in a hash: Can't use string ("STRING") as a HASH ref while "strict refs" in use

Compare

%hash = (key1 => 'val1', key2 => 'val2'); $hash = {key1 => 'val1', key2 => 'val2'};
The first one defines hash, the second defines reference to hash, which is scalar.

  • Comment on Re^3: Subarray in a hash: Can't use string ("STRING") as a HASH ref while "strict refs" in use
  • Download Code