$dereferencer = { $^moose.[1][3] }; $dereferencer($datastructure); #### role Profound { method dereferencer ($x) { $x.[1][3] } } ($datastructure but Profound).dereferencer;