in reply to Re: Putting an array into a hash gives an unexpected reference to the hash itself.
in thread Putting an array into a hash gives an unexpected reference to the hash itself.

Just a warning though that if you change one (e.g., push $services{"service1"}{"email"}, "xxx";), they will both change:
%services = ( 'service1' => { 'email' => [ 'worker@company.com', 'manager@company.com', 'xxx' ] }, 'service2' => { 'email' => [ 'worker@company.com', 'manager@company.com', 'xxx' ] } );

Replies are listed 'Best First'.
Re^3: Putting an array into a hash gives an unexpected reference to the hash itself.
by kcott (Archbishop) on Nov 08, 2012 at 00:02 UTC

    ++ Thanks for that. It looks like I misinterpreted the question. I've updated my response.

    -- Ken