in reply to HowTo Href_O_Href slice

If I understand your question correctly, line 106 is what you're looking for.

DB<105> $href = { KEY1 => { KEY11 => "c", KEY12 => "b" } } => { KEY1 => { KEY11 => "c", KEY12 => "b" } } DB<106> @{$href->{KEY1}}{qw/KEY11 KEY12/}=("c" ,"d"); => ("c", "d") DB<107> $href => { KEY1 => { KEY11 => "c", KEY12 => "d" } }

you are getting an anonymous array because you enclosed your slice-range in brackets.

Cheers Rolf

Replies are listed 'Best First'.
Re^2: HowTo Href_O_Href slice
by sgrey (Novice) on Feb 24, 2012 at 21:16 UTC

    Thanks Rolf, that did the trick. Much Obliged for your help!