in reply to How to get a slice of hash ref that a sub returns.
Hi, Simple, make it simple...
sub x {return {a => 1, b=> 2, c => 3}} print @{x()}{a,b} [download]