sub x { return {qw(a b c d)}; } print @{x()}{"a","c"};