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